IdentityReference 类

定义

表示一个标识,为 NTAccountSecurityIdentifier 类的基类。Represents an identity and is the base class for the NTAccount and SecurityIdentifier classes. 此类不提供公共构造函数,因为不能被继承。This class does not provide a public constructor, and therefore cannot be inherited.

public ref class IdentityReference abstract
public abstract class IdentityReference
[System.Runtime.InteropServices.ComVisible(false)]
public abstract class IdentityReference
type IdentityReference = class
Public MustInherit Class IdentityReference
继承
IdentityReference
派生
属性

属性

Value

获取 IdentityReference 对象表示的标识的字符串值。Gets the string value of the identity represented by the IdentityReference object.

方法

Equals(Object)

返回一个值,该值指示指定对象是否等于 IdentityReference 类的此实例。Returns a value that indicates whether the specified object equals this instance of the IdentityReference class.

GetHashCode()

用作 IdentityReference 的哈希函数。Serves as a hash function for IdentityReference. GetHashCode() 适用于哈希算法和哈希表之类的数据结构。GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IsValidTargetType(Type)

返回一个值,该值指示指定类型是否为 IdentityReference 类的有效转换类型。Returns a value that indicates whether the specified type is a valid translation type for the IdentityReference class.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回 IdentityReference 对象表示的标识的字符串表示形式。Returns the string representation of the identity represented by the IdentityReference object.

Translate(Type)

IdentityReference 对象表示的帐户名转换为另一 IdentityReference 派生的类型。Translates the account name represented by the IdentityReference object into another IdentityReference-derived type.

运算符

Equality(IdentityReference, IdentityReference)

比较两个 IdentityReference 对象以确定它们是否相等。Compares two IdentityReference objects to determine whether they are equal. 如果这两个对象具有与 Value 属性返回的规范名称表示形式相同的规范名称表示形式,或是都为 null,则将它们视为相等。They are considered equal if they have the same canonical name representation as the one returned by the Value property or if they are both null.

Inequality(IdentityReference, IdentityReference)

比较两个 IdentityReference 对象以确定它们是否不相等。Compares two IdentityReference objects to determine whether they are not equal. 如果它们的规范名称表示形式与 Value 属性返回的表示形式不同,或其中一个对象为 null 而另一个对象不是,它们将被视为不相等。They are considered not equal if they have different canonical name representations than the one returned by the Value property or if one of the objects is null and the other is not.

适用于