StaticExtension.Member Property

Gets or sets a string that identifies a static field or property.

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

public string Member { get; set; }
/** @property */
public String get_Member ()

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

public function get Member () : String

public function set Member (value : String)

 For XAML information, see x:Static Markup Extension. 

Property Value

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

Exception typeCondition


Attempted to set Member to 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 deferred until ProvideValue is called on this extension. When ProvideValue is called, this property must identify a resolvable static value. Rather than setting this property, 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