This documentation is archived and is not being maintained.

StaticExtension.StaticExtension(String) Constructor

Initializes a new instance of the StaticExtension class using the provided member string.

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

public StaticExtension (
	string member
public StaticExtension (
	String member
public function StaticExtension (
	member : String
You cannot use constructors in XAML.



A string that identifies the member to make a reference to. This string uses the format Prefix:ClassName.FieldOrPropertyName. (Prefix is optional and refers to the XML namespace prefix in a XAML file.)

Exception typeCondition


The value passed for member is a null reference (Nothing in Visual Basic).

The member value is not evaluated when you set it. If the initial value is not a null reference (Nothing in Visual Basic),then the value is accepted. The actual parsing and evaluation of the member value is deferred until ProvideValue is called on this extension. The XAML behavior of the extension uses this constructor to establish the member string and then ProvideValue is called subsequently at load time.

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