SecureStoreProvider.DeleteCredentials method

Deletes the credentials for the target application with 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 Sub DeleteCredentials ( _
    appId As String _
)
'Usage
Dim instance As SecureStoreProvider
Dim appId As String

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

Parameters

Implements

ISecureStoreProvider.DeleteCredentials(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.

Remarks

This method does not delete credentials for group target applications. It deletes credentials only for individual target applications.

See also

Reference

SecureStoreProvider class

SecureStoreProvider members

Microsoft.Office.SecureStoreService.Server namespace