XmlDictionaryString XmlDictionaryString XmlDictionaryString XmlDictionaryString Class


表示存储在 XmlDictionary 中的项。Represents an entry stored in a XmlDictionary.

public ref class XmlDictionaryString
public class XmlDictionaryString
type XmlDictionaryString = class
Public Class XmlDictionaryString


此类表示 IXmlDictionary 中的项。This class represents an entry in an IXmlDictionary. 它使整数值与字符串值相关联,以便供 XmlDictionaryReaderXmlDictionaryWriter 实现使用。It associates an integer value with a string value for use by XmlDictionaryReader and XmlDictionaryWriter implementations.


XmlDictionaryString(IXmlDictionary, String, Int32) XmlDictionaryString(IXmlDictionary, String, Int32) XmlDictionaryString(IXmlDictionary, String, Int32) XmlDictionaryString(IXmlDictionary, String, Int32)

创建此类的实例。Creates an instance of this class.


Dictionary Dictionary Dictionary Dictionary

表示传递到此 IXmlDictionary 实例的构造函数的 XmlDictionaryStringRepresents the IXmlDictionary passed to the constructor of this instance of XmlDictionaryString.

Empty Empty Empty Empty

获取表示空字符串的 XmlDictionaryStringGets an XmlDictionaryString representing the empty string.

Key Key Key Key

获取该类的此实例的整数键。Gets the integer key for this instance of the class.

Value Value Value Value

获取该类的此实例的字符串值。Gets the string value for this instance of the class.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

显示此对象的文本表示形式。Displays a text representation of this object.