C# Class Simple.CredentialManager.Credential

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Credential() public méthode

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

Credential() public méthode

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.
Résultat System

Credential() public méthode

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.
Résultat System

Delete() public méthode

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

Dispose() public méthode

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

Exists() public méthode

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

Load() public méthode

Loads this instance.
public Load ( ) : bool
Résultat bool

LoadAll() public static méthode

Loads all credentials
public static LoadAll ( ) : IEnumerable
Résultat IEnumerable

Save() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string