[This is preliminary documentation and subject to change.]
Initializes a new Credential instance.
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.
| 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. |
Credential Class | Org.Mentalis.SecurityServices.Authentication Namespace | Credential Constructor Overload List