C# Класс Simple.CredentialManager.Credential

Class Credential, wrapper for native CREDENTIAL structure. See CREDENTIAL structure documentation. See Credential Manager documentation.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

Credential() публичный Метод

Initializes a new instance of the Credential class.
public Credential ( string username ) : System
username string The username.
Результат System

Credential() публичный Метод

Initializes a new instance of the Credential class.
public Credential ( string username, string password ) : System
username string The username.
password string The password.
Результат System

Credential() публичный Метод

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.
Результат System

Credential() публичный Метод

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.
Результат System

Delete() публичный Метод

Deletes this instance.
Target must be specified to delete a credential.
public Delete ( ) : bool
Результат bool

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Exists() публичный Метод

Checks if the credential with these properties exists
Target must be specified to check existance of a credential.
public Exists ( ) : bool
Результат bool

Load() публичный Метод

Loads this instance.
public Load ( ) : bool
Результат bool

LoadAll() публичный статический Метод

Loads all credentials
public static LoadAll ( ) : IEnumerable
Результат IEnumerable

Save() публичный Метод

Saves this instance.
password;The password has exceeded 512 bytes.
public Save ( ) : bool
Результат bool

ToString() публичный Метод

public ToString ( ) : string
Результат string