GetXamlDirective Method

XamlSchemaContext.GetXamlDirective Method (String, String)

.NET Framework 4.6 and 4.5

Returns a XamlDirective value that represents a directive, either for the XAML language or for a particular implementation.

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

public virtual XamlDirective GetXamlDirective(
	string xamlNamespace,
	string name


Type: System.String

The XAML namespace that contains the named directive.

Type: System.String

The name of the directive to obtain.

Return Value

Type: System.Xaml.XamlDirective

A XamlDirective object that represents the requested directive.

Exception Condition

xamlNamespace or name is null.

Override this method if you create a derived class from XamlDirective as part of a XAML type system extension scenario.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft