Szerkesztés

Megosztás a következőn keresztül:


XmlnsDictionary.Add Method

Definition

Adds a prefix-URI pair to this XmlnsDictionary.

Overloads

Add(Object, Object)

Adds a prefix-URI pair to this XmlnsDictionary.

Add(String, String)

Adds a prefix-URI pair to this XmlnsDictionary.

Add(Object, Object)

Adds a prefix-URI pair to this XmlnsDictionary.

public:
 virtual void Add(System::Object ^ prefix, System::Object ^ xmlNamespace);
public void Add (object prefix, object xmlNamespace);
abstract member Add : obj * obj -> unit
override this.Add : obj * obj -> unit
Public Sub Add (prefix As Object, xmlNamespace As Object)

Parameters

prefix
Object

The prefix of the XAML namespace to be added.

xmlNamespace
Object

The XAML namespace URI the prefix maps to.

Implements

Exceptions

prefix or xmlNamespace is not a string.

prefix or xmlNamespace is null.

Remarks

After initial type-checking, this implementation forwards to the type-safe method XmlnsDictionary.Add.

Applies to

Add(String, String)

Adds a prefix-URI pair to this XmlnsDictionary.

public:
 void Add(System::String ^ prefix, System::String ^ xmlNamespace);
public void Add (string prefix, string xmlNamespace);
member this.Add : string * string -> unit
Public Sub Add (prefix As String, xmlNamespace As String)

Parameters

prefix
String

The prefix of this XML namespace.

xmlNamespace
String

The XML namespace URI the prefix maps to.

Exceptions

prefix or xmlNamespace is null.

Applies to