Export (0) Print
Expand All

XamlDirective.AllowedLocation Property

Gets a value that specifies the XAML node types where the directive can be specified.

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

public AllowedMemberLocations AllowedLocation { get; }

Property Value

Type: System.Xaml.Schema.AllowedMemberLocations
A value of the enumeration. The default is the enumeration default, which is None.

You can set this value in the XamlDirective(IEnumerable<String>, String, XamlType, XamlValueConverter<TypeConverter>, AllowedMemberLocations) constructor signature. If you construct by using the XamlDirective(String, String) constructor signature, the AllowedLocation value for the instance is Any. However, the instance always reports IsUnknown as true. This behavior typically affects attempts to write object graphs and also affects other practical uses of a XamlMember value.

You typically would not construct a XAML directive case where AllowedLocation is AllowedMemberLocations.None.

.NET Framework

Supported in: 4.6, 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