Aracılığıyla paylaş


XmlBinaryReaderSession.Add Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

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

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

id is less than zero.

ArgumentNullException

value is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

An entry with key = id already exists.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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