Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TypeExtension Constructor (String)

Initializes a new instance of the TypeExtension class, initializing the TypeName value based on the provided typeName string.

Namespace:  System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)
public TypeExtension(
	string typeName
)

Parameters

typeName
Type: System.String
A string that identifies the type to make a reference to. This string uses the format prefix:classNameprefix is the mapping prefix for a XAML namespace, and is only required to reference types that are not mapped to the default XAML namespace.
ExceptionCondition
ArgumentNullException

Attempted to specify typeName as null.

This value is not evaluated when you set it in the constructor. If the value is not null, the value will be initially accepted. The actual parsing and evaluation of the value is deferred until ProvideValue is called on this extension, when XAML is parsed and with available service contexts active. At this time the typeName is expected to be resolvable as a type within a XAML schema context, and that type is returned.

.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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.