Share via


ISecureStoreProvider.GetCredentials Method

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

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

See Also

Reference

ISecureStoreProvider Interface

ISecureStoreProvider Members

Microsoft.BusinessData.Infrastructure.SecureStore Namespace