AllowedMemberLocations Enumeration

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Specifies the syntax restrictions enforced on a property when it is set in XAML, as reported by a XamlDirective.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

public enum AllowedMemberLocations

Member nameDescription

Property can be set in either Attribute or MemberElement location. (This enumeration member is defined as the combination of those values.)


Property can be set in XAML attribute syntax.


Property can be set in XAML property element syntax.


Property cannot be set in XAML at all. This is the default.

Information reported by this property does not account for any possible markup extensions. Markup extensions are processed first and can potentially return objects from within an attribute usage, even for properties that are notated as MemberElement only.

.NET Framework
Available since 4.0
Return to top