Export (0) Print
Expand All

TypeExtension.Type Property

Gets or sets the type information for this extension.

Namespace:  System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)
XMLNS for XAML: Not mapped to an xmlns.

public Type Type { get; set; }

Property Value

Type: System.Type
The established type. For runtime purposes, this may be null for get access, but cannot be set to null.

ExceptionCondition
ArgumentNullException

Attempted to set to null.

Unless this instance was deliberately instantiated with the TypeExtension(Type) signature constructor, this value will be null. This property will not be reset when ProvideValue is called. If you want the true type represented you should always call ProvideValue rather than check this property.

This property is settable per usual rules regarding markup extension usage. However, if you are setting with a Type, then the purpose of this markup extension is irrelevant, because the same Type is returned from a ProvideValue call.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft