Item Property (Object)
Collapse the table of content
Expand the table of content

XmlnsDictionary.Item Property (Object)

Gets or sets the namespace associated with the specified XML prefix.

Namespace:  System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Object this[
	Object prefix
] { get; set; }
You cannot set this property in XAML.

Parameters

prefix
Type: System.Object

The prefix from which to get or set the associated namespace.

Property Value

Type: System.Object

Implements

IDictionary.Item[Object]

ExceptionCondition
ArgumentException

prefix is null.

ArgumentNullException

prefix is not a string.

ArgumentNullException

The namespace to associate with prefix is null.

ArgumentException

The namespace to associate with prefix is not a string.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2016 Microsoft