StaticExtension Constructor (String)
Collapse the table of content
Expand the table of content

StaticExtension Constructor (String^)

 

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

Namespace:   System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

public:
StaticExtension(
	String^ member
)

Parameters

member
Type: System::String^

A string that identifies the member to make a reference to. This string uses the format prefix:typeName.fieldOrPropertyNameprefix is the mapping prefix for a XAML namespace, and is only required to reference static values that are not mapped to the default XAML namespace.

Exception Condition
ArgumentNullException

member is null.

The member value is not evaluated when you set it. If the initial value is not null,then the value is accepted. The actual parsing and evaluation of the member value is deferred until ProvideValue is called when a XAML writer processes an extension usage. At that time, XAML schema context informs the type mapping and the value can be obtained.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft