Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the Secure Store credentials for the specified target application identifier.
Namespace: Microsoft.BusinessData.Infrastructure.SecureStore
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function GetCredentials ( _
appId As String _
) As SecureStoreCredentialCollection
'Usage
Dim instance As ISecureStoreProvider
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection
returnValue = instance.GetCredentials(appId)
SecureStoreCredentialCollection GetCredentials(
string appId
)
Parameters
appId
Type: System.StringThe target application identifier.
Return Value
Type: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
The collection of credentials.
Exceptions
Exception | Condition |
---|---|
SecureStoreCredentialsNotFoundException | The credentials are not available for the specified target application. |
SecureStoreTargetApplicationNotFoundException | The target application does not exist in the Secure Store. |
Remarks
This method does not return credentials for restricted target applications. To get the credentials for restricted target applications call GetRestrictedCredentials(String).
Examples
Code Snippet: Get User Credentials Using the Default Secure Store Provider