XamlDirective Class

.NET Framework (current version)
 

Provides the XAML type system identifier for a member if the member is also a XAML directive. XAML readers and XAML writers use the XamlDirective identifier during processing of member nodes. The identifier is used when the XAML reader is positioned on a StartMember and IsDirective is true.

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

System::Object
  System.Xaml::XamlMember
    System.Xaml::XamlDirective

public ref class XamlDirective : XamlMember

NameDescription
System_CAPS_pubmethodXamlDirective(IEnumerable<String^>^, String^, XamlType^, XamlValueConverter<TypeConverter^>^, AllowedMemberLocations)

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

System_CAPS_pubmethodXamlDirective(String^, String^)

Initializes a new instance of the XamlDirective class, specifying values for a name and a single XAML namespace. Use this signature only when you want or expect IsUnknown to report true for the directive.

NameDescription
System_CAPS_pubpropertyAllowedLocation

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

System_CAPS_pubpropertyDeclaringType

Gets the XamlType for the type that declares the member that is associated with this XamlMember.(Inherited from XamlMember.)

System_CAPS_pubpropertyDeferringLoader

Gets a XamlValueConverter<TConverterBase> object, which is used for deferred loading of XAML declared objects.(Inherited from XamlMember.)

System_CAPS_pubpropertyDependsOn

Gets a list of XamlMember objects. These report the members where dependency relationships for initialization order exist relative to this XamlMember.(Inherited from XamlMember.)

System_CAPS_pubpropertyInvoker

Gets the XamlMemberInvoker implementation that is associated with this XamlMember.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsAmbient

Gets a value that indicates whether this XamlMember is reported as an ambient property.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsAttachable

Gets a value that indicates whether this XamlMember is an attachable member.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsDirective

Gets a value that indicates whether this XamlMember is a XAML directive.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsEvent

Gets a value that indicates whether this XamlMember represents an event member.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsNameValid

Gets a value that indicates whether this XamlMember is initialized with a valid xamlName string as its Name.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether this XamlMember represents a read-only member.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsReadPublic

Gets a value that indicates whether this XamlMember represents a member with a callable public get accessor.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsUnknown

Gets a value that indicates whether the member is not resolvable by the backing system that is used for type and member resolution.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsWriteOnly

Gets a value that indicates whether this XamlMember represents a write-only member.(Inherited from XamlMember.)

System_CAPS_pubpropertyIsWritePublic

Gets a value that indicates whether this XamlMember represents a member that has a callable public set accessor.(Inherited from XamlMember.)

System_CAPS_pubpropertyMarkupExtensionBracketCharacters

Defines the opening and closing bracket characters for a markup extension.(Inherited from XamlMember.)

System_CAPS_pubpropertyName

Gets the xamlName name string that declares this XamlMember.(Inherited from XamlMember.)

System_CAPS_pubpropertyPreferredXamlNamespace

Gets the single XAML namespace URI that identifies the primary XAML namespace for this XamlMember. (Inherited from XamlMember.)

System_CAPS_pubpropertySerializationVisibility

Gets a DesignerSerializationVisibility value, which indicates how a visual designer should process the member.(Inherited from XamlMember.)

System_CAPS_pubpropertyTargetType

Gets the XamlType of the type where the XamlMember can exist.(Inherited from XamlMember.)

System_CAPS_pubpropertyType

Gets the XamlType of the type that is used by the member.(Inherited from XamlMember.)

System_CAPS_pubpropertyTypeConverter

Gets a XamlValueConverter<TConverterBase> object, which can be used for type conversion construction of XAML declared objects.(Inherited from XamlMember.)

System_CAPS_pubpropertyUnderlyingMember

Gets the CLR type system MemberInfo that is available for a member that is constructed by PropertyInfo, MethodInfo, or EventInfo.(Inherited from XamlMember.)

System_CAPS_pubpropertyValueSerializer

Gets a XamlValueConverter<TConverterBase> object, which is used for value serialization of XAML declared objects.(Inherited from XamlMember.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

Indicates whether the current object is equal to another object.(Inherited from XamlMember.)

System_CAPS_pubmethodEquals(XamlMember^)

Indicates whether the current object is equal to another object of the same type.(Inherited from XamlMember.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this object.(Overrides XamlMember::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetXamlNamespaces()

Returns a list of XAML namespaces where this XAML member can exist. (Overrides XamlMember::GetXamlNamespaces().)

System_CAPS_protmethodLookupCustomAttributeProvider()

Returns an ICustomAttributeProvider implementation. This implementation always returns null.(Overrides XamlMember::LookupCustomAttributeProvider().)

System_CAPS_protmethodLookupDeferringLoader()

Returns a XamlValueConverter<TConverterBase> object, which is used during deferred loading of XAML-declared objects. This implementation always returns null.(Overrides XamlMember::LookupDeferringLoader().)

System_CAPS_protmethodLookupDependsOn()

Returns a list of XamlMember objects. The list reports the members where dependency relationships for initialization order exist relative to this XamlMember. This implementation always returns null.(Overrides XamlMember::LookupDependsOn().)

System_CAPS_protmethodLookupInvoker()

Returns the XamlMemberInvoker that is associated with a XamlDirective.(Overrides XamlMember::LookupInvoker().)

System_CAPS_protmethodLookupIsAmbient()

Returns whether this XamlMember is reported as an ambient property.(Overrides XamlMember::LookupIsAmbient().)

System_CAPS_protmethodLookupIsEvent()

Returns whether this XamlDirective represents an event.(Overrides XamlMember::LookupIsEvent().)

System_CAPS_protmethodLookupIsReadOnly()

Returns whether this XamlDirective represents an intended read-only property.(Overrides XamlMember::LookupIsReadOnly().)

System_CAPS_protmethodLookupIsReadPublic()

Returns whether this XamlDirective represents a property that has a public get accessor.(Overrides XamlMember::LookupIsReadPublic().)

System_CAPS_protmethodLookupIsUnknown()

Returns whether this XamlDirective represents a member that is not resolvable by the backing system that is used for type and member resolution.(Overrides XamlMember::LookupIsUnknown().)

System_CAPS_protmethodLookupIsWriteOnly()

Returns whether this XamlDirective represents an intended write-only property.(Overrides XamlMember::LookupIsWriteOnly().)

System_CAPS_protmethodLookupIsWritePublic()

Returns whether this XamlDirective represents a property that has a public set accessor.(Overrides XamlMember::LookupIsWritePublic().)

System_CAPS_protmethodLookupMarkupExtensionBracketCharacters()

Returns the opening and closing bracket characters for a markup extension.(Inherited from XamlMember.)

System_CAPS_protmethodLookupTargetType()

Returns the XamlType of the type where the XamlMember can exist. This implementation always returns null.(Overrides XamlMember::LookupTargetType().)

System_CAPS_protmethodLookupType()

Returns the XamlType of the type that is used by the member. (Overrides XamlMember::LookupType().)

System_CAPS_protmethodLookupTypeConverter()

Returns a type converter implementation that is associated with this XamlDirective.(Overrides XamlMember::LookupTypeConverter().)

System_CAPS_protmethodLookupUnderlyingGetter()

Returns a get accessor that is associated with this XamlDirective. This implementation always returns null.(Overrides XamlMember::LookupUnderlyingGetter().)

System_CAPS_protmethodLookupUnderlyingMember()

Returns a CLR reflection MemberInfo that is associated with this XamlDirective. This implementation always returns null.(Overrides XamlMember::LookupUnderlyingMember().)

System_CAPS_protmethodLookupUnderlyingSetter()

Returns a set accessor that is associated with this XamlDirective. This implementation always returns null.(Overrides XamlMember::LookupUnderlyingSetter().)

System_CAPS_protmethodLookupValueSerializer()

Returns a value serializer implementation that is associated with this XamlMember.(Inherited from XamlMember.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representation of this XamlDirective.(Overrides XamlMember::ToString().)

XamlDirective provides expected values for the XAML type system when the member is a XAML directive. By definition, a XAML directive has characteristics that always return the same results for a subset of the XamlMember properties, and the same XAML type system information is reported for all possible XAML directives. The reporting of XAML type system characteristics that are specific to directives is accomplished by internal behavior or through overrides of XamlMember Lookup* virtual members in the XamlDirective class.

The following list shows the returned results of a XAML directive for XamlMember when the member is actually a XamlDirective:

Also, the internal backing for DeclaringType remains unset and returns null.

System_CAPS_security Security Note

XamlDirective is a XamlMember subclass. As with XamlMember, XamlDirective has security considerations regarding how the XAML type system reports access. See Remarks in XamlMember.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: