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.

'Declaration
Public Property Member As String

Property Value

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

ExceptionCondition
ArgumentNullException

Attempted to set Member to Nothing.

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 Nothing 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.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft