SecurityServices for .NET 2.0 Documentation

Credential Constructor (String, String, PersistType)

[This is preliminary documentation and subject to change.]

Initializes a new Credential instance.

public Credential(
   String targetName,
   String comment,
   PersistType persist
);

Parameters

String
The name of the credential.
String
A comment associated with the credential.
PersistType
One of the PersistType values.

Remarks

targetName must be at least one character and not longer than 32767 characters.
comment may be a null reference, but may not be longer than 256 characters.
persist may not have the value PersistType.None.

Exceptions

Exception Type Condition
NotSupportedException This functionality requires Windows XP or higher.
ArgumentNullException targetName is a null reference.
ArgumentException One of the input parameters is invalid.
CredentialException An error occurs while trying to retrieve the credential.

See Also

Credential Class | Org.Mentalis.SecurityServices.Authentication Namespace | Credential Constructor Overload List