C# Класс Microsoft.Alm.Authentication.NativeMethods.Credential

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AttributeCount uint
Attributes System.IntPtr
CredentialBlob System.IntPtr
CredentialBlobSize uint
Flags CredentialFlags
LastWritten System.Runtime.InteropServices.ComTypes.FILETIME
Persist CredentialPersist
Type CredentialType

Описание свойств

AttributeCount публичное свойство

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

Attributes публичное свойство

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

public IntPtr,System Attributes
Результат System.IntPtr

CredentialBlob публичное свойство

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

CredentialBlobSize публичное свойство

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

This member cannot be larger than `PasswordMaxLength` bytes.

public uint CredentialBlobSize
Результат uint

Flags публичное свойство

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

LastWritten публичное свойство

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

Persist публичное свойство

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

public CredentialPersist Persist
Результат CredentialPersist

Type публичное свойство

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

public CredentialType Type
Результат CredentialType