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.

'Declaration
Public Property Type As Type

Property Value

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

ExceptionCondition
ArgumentNullException

Attempted to set to Nothing.

Unless this instance was deliberately instantiated with the TypeExtension(Type) signature constructor, this value will be Nothing. 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.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft