XamlDirective Constructor (String, String)

.NET Framework (current version)
 

Initializes a new instance of the XamlDirective class, specifying values for a name and a single XAML namespace. Use this signature only when you want or expect IsUnknown to report true for the directive.

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

public XamlDirective(
	string xamlNamespace,
	string name
)

Parameters

xamlNamespace
Type: System.String

The primary XAML namespace where this XamlDirective can exist.

name
Type: System.String

The identifying name of the XamlDirective.

System_CAPS_importantImportant

This signature of the constructor always generates an identifier for the directive where IsUnknown reports true for the XAML type system. If the necessary information is available (the backing type and a text syntax information item for conversion) and you want an identifier that can apply the directive, use the XamlDirective.XamlDirective constructor signature instead.

If you use this signature, the AllowedLocation value for the instance is Any; and the Type value and TypeConverter value are both null.

.NET Framework
Available since 4.0
Return to top
Show: