Export (0) Print
Expand All

XmlBinaryReaderSession.Add Method

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)

public XmlDictionaryString Add(
	int id,
	string value
)

Parameters

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

ExceptionCondition
ArgumentOutOfRangeException

id is less than zero.

ArgumentNullException

value is null.

InvalidOperationException

An entry with key = id already exists.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft