EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

XmlDictionaryString Constructor

May 11, 2014

Creates an instance of the XmlDictionaryString class.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public XmlDictionaryString(
	IXmlDictionary dictionary,
	string value,
	int key
)

Parameters

dictionary
Type: System.Xml.IXmlDictionary
The IXmlDictionary that contains this instance.
value
Type: System.String
The string that is the value of the dictionary entry.
key
Type: System.Int32
The integer that is the key of the dictionary entry.

ExceptionCondition
ArgumentNullException

value is null.

ArgumentOutOfRangeException

key is less than 0 or greater than MaxValue / 4.

The XmlDictionaryString does not automatically add itself to the specified dictionary.

If the dictionary parameter is null, the XmlDictionaryString is created with a key of 0 and the value set to an empty string.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Afficher:
© 2014 Microsoft