TypeExtension.TypeName Property

Gets or sets the type name represented by this markup extension.

Namespace: System.Windows.Markup
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml

public string TypeName { get; set; }
/** @property */
public String get_TypeName ()

/** @property */
public void set_TypeName (String value)

public function get TypeName () : String

public function set TypeName (value : String)

 For XAML information, see x:Type Markup Extension. 

Property Value

String identifying a type, in the format Prefix:Typename, where Prefix refers to the XML namespace prefix in a XAML file.

Exception typeCondition


Cannot set this to be a null reference (Nothing in Visual Basic).

This value is not evaluated when you set it; so long as the value is not a null reference (Nothing in Visual Basic) it will be accepted. The actual parsing and evaluation of the value is defered until ProvideValue is called on this extension and it is expected to return the type. It is more common to provide the member value during construction, which is enabled by the XAML behavior of the extension.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions