XamlTypeInvoker Class

.NET Framework (current version)
 
System_CAPS_noteNote

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

Provides an extension point that can construct instances of a XAML type through techniques other than reflection and constructors.

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

System.Object
  System.Xaml.Schema.XamlTypeInvoker

public class XamlTypeInvoker

NameDescription
System_CAPS_protmethodXamlTypeInvoker()

Initializes a new instance of the XamlTypeInvoker class.

System_CAPS_pubmethodXamlTypeInvoker(XamlType)

Initializes a new instance of the XamlTypeInvoker class, based on a provided XamlType.

NameDescription
System_CAPS_pubpropertySetMarkupExtensionHandler

Gets the handler to use when a XamlObjectWriter calls into an implemented MarkupExtension.

System_CAPS_pubpropertySetTypeConverterHandler

Gets the handler to use when a XamlObjectWriter calls into a CLR-implemented TypeConverter.

System_CAPS_pubpropertySystem_CAPS_staticUnknownInvoker

Provides a static value that represents an unknown, not fully implemented XamlTypeInvoker.

NameDescription
System_CAPS_pubmethodAddToCollection(Object, Object)

Adds the provided item to an instance of the type that is relevant to this XamlTypeInvoker.

System_CAPS_pubmethodAddToDictionary(Object, Object, Object)

Adds the provided key and item value to an instance of the type that is relevant to this XamlTypeInvoker.

System_CAPS_pubmethodCreateInstance(Object[])

Creates an object instance based on the construction-initiated XamlType for this XamlTypeInvoker.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

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_pubmethodGetAddMethod(XamlType)

Returns the relevant Add method for a XamlTypeInvoker that is relevant to a collection or dictionary.

System_CAPS_pubmethodGetEnumeratorMethod()

Returns an object representing a method that can enumerate over items.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetItems(Object)

Returns an IEnumerator object representing the set of items.

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The purpose of XamlTypeInvoker 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 XamlTypeInvoker are used as input parameters for the alternate constructors of XAML schema classes such as XamlType. You subclass XamlType and pass the XamlTypeInvoker through to the base constructor. Along with defining a XamlTypeInvoker for the constructor, you must also provide overrides for at least some of the Lookup methods of XamlType.

XamlTypeInvoker 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.

XamlTypeInvoker provides methods for basic instantiation (CreateInstance) and methods that are relevant for types where the XamlType represents a collection, dictionary or array (AddToCollection; AddToDictionary; GetAddMethod; GetEnumeratorMethod; GetItems).

.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: