Add Method
Collapse the table of content
Expand the table of content

XmlBinaryReaderSession.Add Method

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

Creates an XmlDictionaryString from the input parameters and adds it to an internal collection.

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

'Declaration
Public Function Add ( _
	id As Integer, _
	value As String _
) As XmlDictionaryString

Parameters

id
Type: System.Int32
The key value.
value
Type: System.String
The value.

ExceptionCondition
ArgumentOutOfRangeException

id is less than zero.

ArgumentNullException

value is Nothing.

InvalidOperationException

An entry with key = id already exists.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft