XmlDictionaryString Constructor
Collapse the table of content
Expand the table of content

XmlDictionaryString Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates an instance of the XmlDictionaryString class.

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

'Declaration
Public Sub New ( _
	dictionary As IXmlDictionary, _
	value As String, _
	key As Integer _
)

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 Nothing.

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 Nothing, 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

Show:
© 2017 Microsoft