다음을 통해 공유


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