StringToken 结构

定义

表示用于表示字符串的标记。Represents a token that represents a string.

public value class StringToken
[System.Serializable]
public struct StringToken
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct StringToken
[<System.Serializable>]
type StringToken = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StringToken = struct
Public Structure StringToken
继承
StringToken
属性

属性

Token

检索该字符串的元数据标记。Retrieves the metadata token for this string.

方法

Equals(Object)

检查给定对象是否为 StringToken 的实例和是否等于此实例。Checks if the given object is an instance of StringToken and is equal to this instance.

Equals(StringToken)

指示当前实例是否等于指定的 StringTokenIndicates whether the current instance is equal to the specified StringToken.

GetHashCode()

返回该字符串的哈希代码。Returns the hash code for this string.

运算符

Equality(StringToken, StringToken)

指示两个 StringToken 结构是否相等。Indicates whether two StringToken structures are equal.

Inequality(StringToken, StringToken)

指示两个 StringToken 结构是否不相等。Indicates whether two StringToken structures are not equal.

适用于