SecureStoreProvider.GetCredentials method

Gets the credentials for the target application using the specified target application ID.

Namespace:  Microsoft.Office.SecureStoreService.Server
Assembly:  Microsoft.Office.SecureStoreService (in Microsoft.Office.SecureStoreService.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
<SecureStorePermissionAttribute(SecurityAction.Demand, Access := SecureStoreAccess.Credentials)> _
Public Function GetCredentials ( _
    appId As String _
) As SecureStoreCredentialCollection
'Usage
Dim instance As SecureStoreProvider
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection

returnValue = instance.GetCredentials(appId)
[PermissionSetAttribute(SecurityAction.Assert, Name = "FullTrust")]
[SecureStorePermissionAttribute(SecurityAction.Demand, Access = SecureStoreAccess.Credentials)]
public SecureStoreCredentialCollection GetCredentials(
    string appId
)

Parameters

Return value

Type: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
The collection of credentials for the target application.

Implements

ISecureStoreProvider.GetCredentials(String)

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.

See also

Reference

SecureStoreProvider class

SecureStoreProvider members

Microsoft.Office.SecureStoreService.Server namespace