XamlDirective Constructor (IEnumerable<String>, String, XamlType, XamlValueConverter<TypeConverter>, AllowedMemberLocations)

.NET Framework (current version)
 

Initializes a new instance of the XamlDirective class, specifying values for each per-case value of a XamlDirective.

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

public XamlDirective(
	IEnumerable<string> xamlNamespaces,
	string name,
	XamlType xamlType,
	XamlValueConverter<TypeConverter> typeConverter,
	AllowedMemberLocations allowedLocation
)

Parameters

xamlNamespaces
Type: System.Collections.Generic.IEnumerable<String>

A set of XAML namespaces where this XamlDirective can exist, passed as an enumerable set of the identifier strings.

name
Type: System.String

The identifying name of the XamlDirective.

xamlType
Type: System.Xaml.XamlType

The XAML type that backs the XamlDirective.

typeConverter
Type: System.Xaml.Schema.XamlValueConverter<TypeConverter>

The type converter that this XamlDirective uses for text syntax conversion.

allowedLocation
Type: System.Xaml.Schema.AllowedMemberLocations

A value of the AllowedMemberLocations enumeration.

Exception Condition
ArgumentNullException

The xamlType parameter is null.

You must use this constructor to generate a XamlDirective that does not report IsUnknown as true.

.NET Framework
Available since 4.0
Return to top
Show: