SecureStoreProvider.GetRestrictedCredentials Method
Gets the credentials for a restricted 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.RestrictedCredentials)> _
Public Function GetRestrictedCredentials ( _
appId As String _
) As SecureStoreCredentialCollection
'Usage
Dim instance As SecureStoreProvider
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection
returnValue = instance.GetRestrictedCredentials(appId)
[PermissionSetAttribute(SecurityAction.Assert, Name = "FullTrust")]
[SecureStorePermissionAttribute(SecurityAction.Demand, Access = SecureStoreAccess.RestrictedCredentials)]
public SecureStoreCredentialCollection GetRestrictedCredentials(
string appId
)
Parameters
appId
Type: System.StringThe ID of the restricted target application.
Return Value
Type: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
The collection of credentials for the restricted target application.
Implements
ISecureStoreProvider.GetRestrictedCredentials(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. |