[This is preliminary documentation and subject to change.]
Replaces the binary contents of the credential.
contents may not be larger than 512 bytes.
| Exception Type | Condition |
|---|---|
| ObjectDisposedException | The Credential instance has been closed. |
| ArgumentNullException | contents is a null reference. |
| ArgumentException | contents is invalid. |
| CredentialException | An error occurs while trying to write the credential. |
Credential Class | Org.Mentalis.SecurityServices.Authentication Namespace