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.
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
appId
Type: System.StringThe target application ID.
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. |