C# Class Simple.CredentialManager.Credential

Class Credential, wrapper for native CREDENTIAL structure. See CREDENTIAL structure documentation. See Credential Manager documentation.
Inheritance: IDisposable
Exibir arquivo Open project: spolnik/Simple.CredentialsManager Class Usage Examples

Public Methods

Method Description
Credential ( string username ) : System

Initializes a new instance of the Credential class.

Credential ( string username, string password ) : System

Initializes a new instance of the Credential class.

Credential ( string username, string password, string target ) : System

Initializes a new instance of the Credential class.

Credential ( string username, string password, string target, CredentialType type ) : System

Initializes a new instance of the Credential class.

Delete ( ) : bool

Deletes this instance.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Exists ( ) : bool

Checks if the credential with these properties exists

Load ( ) : bool

Loads this instance.

LoadAll ( ) : IEnumerable

Loads all credentials

Save ( ) : bool

Saves this instance.

ToString ( ) : string

Private Methods

Method Description
CheckNotDisposed ( ) : void

Ensures this instance is not disposed.

Credential ( ) : System

Initializes UnmanagedCodePermission for the Credential class.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

LoadInternal ( NativeMethods credential ) : void

Loads the internal.

Method Details

Credential() public method

Initializes a new instance of the Credential class.
public Credential ( string username ) : System
username string The username.
return System

Credential() public method

Initializes a new instance of the Credential class.
public Credential ( string username, string password ) : System
username string The username.
password string The password.
return System

Credential() public method

Initializes a new instance of the Credential class.
public Credential ( string username, string password, string target ) : System
username string The username.
password string The password.
target string The string that contains the name of the credential.
return System

Credential() public method

Initializes a new instance of the Credential class.
public Credential ( string username, string password, string target, CredentialType type ) : System
username string The username.
password string The password.
target string The string that contains the name of the credential.
type CredentialType The credential type.
return System

Delete() public method

Deletes this instance.
Target must be specified to delete a credential.
public Delete ( ) : bool
return bool

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Exists() public method

Checks if the credential with these properties exists
Target must be specified to check existance of a credential.
public Exists ( ) : bool
return bool

Load() public method

Loads this instance.
public Load ( ) : bool
return bool

LoadAll() public static method

Loads all credentials
public static LoadAll ( ) : IEnumerable
return IEnumerable

Save() public method

Saves this instance.
password;The password has exceeded 512 bytes.
public Save ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string