C# Class Microsoft.Alm.Authentication.NativeMethods.Credential

Mostrar archivo Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Public Properties

Property Type Description
AttributeCount uint
Attributes System.IntPtr
CredentialBlob System.IntPtr
CredentialBlobSize uint
Flags CredentialFlags
LastWritten System.Runtime.InteropServices.ComTypes.FILETIME
Persist CredentialPersist
Type CredentialType

Property Details

AttributeCount public_oe property

The number of application-defined attributes to be associated with the credential.

This member can be read and written. Its value cannot be greater than `AttributeMaxLengh`.

public uint AttributeCount
return uint

Attributes public_oe property

Application-defined attributes that are associated with the credential. This member can be read and written.

public IntPtr,System Attributes
return System.IntPtr

CredentialBlob public_oe property

Secret data for the credential. The CredentialBlob member can be both read and written.

If the `Type` member is `CredentialType.DomainPassword`, this member contains the plaintext Unicode password for `UserName`.

The `CredentialBlob` and `CredentialBlobSize` members do not include a trailing zero character.

Also, for `CredentialType.DomainPassword`, this member can only be read by the authentication packages.

If the Type member is `CredentialType.DomainCertificate`, this member contains the clear test Unicode PIN for `UserName`.

The `CredentialBlob` and `CredentialBlobSize` members do not include a trailing zero character.

Also, this member can only be read by the authentication packages.

If the `Type` member is `CredentialType.Generic`, this member is defined by the application.

Credentials are expected to be portable. Applications should ensure that the data in `CredentialBlob` is portable.

public IntPtr,System CredentialBlob
return System.IntPtr

CredentialBlobSize public_oe property

The size, in bytes, of the `CredentialBlob` member.

This member cannot be larger than `PasswordMaxLength` bytes.

public uint CredentialBlobSize
return uint

Flags public_oe property

A bit member that identifies characteristics of the credential.

Undefined bits should be initialized as zero and not otherwise altered to permit future enhancement.

public CredentialFlags Flags
return CredentialFlags

LastWritten public_oe property

The time, in Coordinated Universal Time (Greenwich Mean Time), of the last modification of the credential.

For write operations, the value of this member is ignored.

public System.Runtime.InteropServices.ComTypes.FILETIME LastWritten
return System.Runtime.InteropServices.ComTypes.FILETIME

Persist public_oe property

Defines the persistence of this credential. This member can be read and written.

public CredentialPersist Persist
return CredentialPersist

Type public_oe property

The type of the credential. This member cannot be changed after the credential is created.

public CredentialType Type
return CredentialType