This documentation is archived and is not being maintained.

AllowedMemberLocations Enumeration

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)

[FlagsAttribute]
public enum class AllowedMemberLocations

Member nameDescription
NoneProperty cannot be set in XAML at all. This is the default.
AttributeProperty can be set in XAML attribute syntax.
MemberElementProperty can be set in XAML property element syntax.
AnyProperty can be set in either Attribute or MemberElement location. (This enumeration member is defined as the combination of those values.)

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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: