Export (0) Print
Expand All

XamlMemberInvoker Class

Provides an extension point that can access member characteristics of a XAML member through techniques other than reflection.

System.Object
  System.Xaml.Schema.XamlMemberInvoker

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

public class XamlMemberInvoker

The XamlMemberInvoker type exposes the following members.

  NameDescription
Protected methodXamlMemberInvoker()Initializes a new instance of the XamlMemberInvoker class.
Public methodXamlMemberInvoker(XamlMember)Initializes a new instance of the XamlMemberInvoker class, based on a provided XamlMember.
Top

  NameDescription
Public propertyUnderlyingGetterGets the MethodInfo for the CLR method that gets values for the property that is relevant for this XamlMemberInvoker.
Public propertyUnderlyingSetterGets the MethodInfo for the CLR method that sets values for the property that is relevant for this XamlMemberInvoker.
Public propertyStatic memberUnknownInvokerProvides a static value that represents an unknown, not fully implemented XamlMemberInvoker.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueGets a value of the relevant property from an instance.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetValueSets a value of the relevant property on an instance.
Public methodShouldSerializeValueIndicates whether the value needs to be persisted by serialization processes.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The purpose of XamlMemberInvoker is to enable an extensible XAML type system, schema, and a working run time that does not rely as fully on CLR features such as CLR attributes, reflection information through Type and MemberInfo, and so on. Subclasses of XamlMemberInvoker are used as input parameters for the alternate constructors of XAML schema classes such as XamlMember. You subclass XamlMember and pass the XamlMemberInvoker through to the base constructor. Along with defining a XamlMemberInvoker for the constructor, you must also provide overrides for at least some of the Lookup methods of XamlMember.

XamlMemberInvoker has a default implementation. The default implementation follows a similar model to the default implementation of XAML schema types XamlType and XamlMember: the CLR type system is used for instantiation, values and lookups, including using CLR attributes, Type and MemberInfo, and so on.

XamlMemberInvoker provides methods for basic get and set operations (GetValue; SetValue). It also provides the properties UnderlyingGetter and UnderlyingSetter, but these are not virtual.

NoteNote

It may be possible to obtain a XamlMemberInvoker value that represents a XAML directive, which is implemented as a private class in the System.Xaml implementation. If you attempt to call GetValue or SetValue on this invoker, an exception is thrown.

.NET Framework

Supported in: 4.5.2, 4.5.1, 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.

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