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.
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.
| Exception | Condition |
|---|---|
| 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.
Show: