Member Property
Collapse the table of content
Expand the table of content

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)

member Member : string with get, set

Property Value

Type: System.String

A string that identifies the member to make a reference to. See Remarks.

Exception Condition
ArgumentNullException

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
Available since 3.0
Return to top
Show:
© 2016 Microsoft