LocalSecureStoreProvider.GetRestrictedCredentials method

Gets the credentials associated with the specified target application identifier.

Namespace:  Microsoft.Office.BusinessData.Infrastructure.SecureStore
Assembly:  Microsoft.Office.BusinessData (in Microsoft.Office.BusinessData.dll)

Syntax

'Declaration
Public Function GetRestrictedCredentials ( _
    appId As String _
) As SecureStoreCredentialCollection
'Usage
Dim instance As LocalSecureStoreProvider
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection

returnValue = instance.GetRestrictedCredentials(appId)
public SecureStoreCredentialCollection GetRestrictedCredentials(
    string appId
)

Parameters

Return value

Type: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
The collection of the restricted credentials.

Implements

ISecureStoreProvider.GetRestrictedCredentials(String)

Remarks

In this LocalSecureStoreProvider, GetRestrictedCredentials has the same behavior as GetCredentials(String) because there is no restricted target application type.

This call prompts the user to enter the credentials if the credentials are not already set. So for the first usage, the user is prompted to enter the credentials and for subsequent calls the credentials are retrieved from the Windows credential store.

See also

Reference

LocalSecureStoreProvider class

LocalSecureStoreProvider members

Microsoft.Office.BusinessData.Infrastructure.SecureStore namespace