Export (0) Print
Expand All

XamlDirective Constructor (String, String)

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


Type: System.String

The primary XAML namespace where this XamlDirective can exist.

Type: System.String

The identifying name of the XamlDirective.

Important noteImportant

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

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

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.

© 2014 Microsoft