Create(string credentialName, ICredentialResolutionContext context) Method

Creates the SecureCredentials associated with the credentialName and specified context

Syntax

public static SecureCredentials Create(string credentialName, ICredentialResolutionContext context)

Parameters

credentialName
Type: string
context
Type: ICredentialResolutionContext

Returns

Located credentials

Exceptions

System.ArgumentNullException

credentialName is null (Nothing in Visual Basic) or empty

System.ArgumentOutOfRangeException

credentialName is invalid

System.InvalidOperationException

credential not found

Remarks

credentialName maybe prefixed with "global::", and in this case the applicationId parameter will be treated as null (Nothing in Visual Basic)