XmlBinaryReaderSession::Add Method (Int32, String^)

 

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.

Return Value

Type: System.Xml::XmlDictionaryString^

The newly created XmlDictionaryString that is added to an internal collection.

Exception Condition
ArgumentOutOfRangeException

id is less than zero.

ArgumentNullException

value is null.

InvalidOperationException

An entry with key = id already exists.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: