This documentation is archived and is not being maintained.

StaticExtension.Member Property

Gets or sets a member name string that is used to resolve a static field or property based on the service-provided type resolver.

Namespace:  System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string Member { get; set; }

Property Value

Type: System.String
A string that identifies the member to make a reference to. See Remarks.


Attempted to set Member to null.

The string for Member typically uses the format prefix:typeName.fieldOrPropertyName. (prefix is the mapping prefix for an XML namespace, and is only required to reference static values that are not mapped to the default XML namespace). The string can also specify only the member name, so long as MemberType is also supplied., but note that this technique will not support XML namespaces and prefixes; it is working at the type system level.

For XAML usage information, see x:Static Markup Extension.

This value is not evaluated when you set it; so long as the value is not null it will be accepted. The actual parsing and evaluation of the value is deferred until ProvideValue is called during parsing.

Under the normal scenario of use by the WPF XAML processor, the XAML processor passes a type resolver for CLR types as part of its service contract, and this resolver is used on the ProvideValue call.

.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.