C# 클래스 Simple.CredentialManager.Credential

Class Credential, wrapper for native CREDENTIAL structure. See CREDENTIAL structure documentation. See Credential Manager documentation.
상속: IDisposable
파일 보기 프로젝트 열기: spolnik/Simple.CredentialsManager 1 사용 예제들

공개 메소드들

메소드 설명
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