Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XamlType Class

.NET Framework (current version)
 

Reports information about XAML types as part of the overall XAML system that is implemented in .NET Framework XAML Services.

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

System.Object
  System.Xaml.XamlType

public class XamlType : IEquatable<XamlType>

NameDescription
System_CAPS_protmethodXamlType(String, IList<XamlType>, XamlSchemaContext)

Initializes a new instance of the XamlType class based on a string name for the type.

System_CAPS_pubmethodXamlType(String, String, IList<XamlType>, XamlSchemaContext)

Initializes a new instance of the XamlType class based on the XAML namespace and a string name for the type. This constructor is exclusively for analysis and XAML-node recording of type usages that are known to not have backing in the supporting type system and XAML schema context.

System_CAPS_pubmethodXamlType(Type, XamlSchemaContext)

Initializes a new instance of the XamlType class based on the underlying CLR type information.

System_CAPS_pubmethodXamlType(Type, XamlSchemaContext, XamlTypeInvoker)

Initializes a new instance of the XamlType class based on underlying type information and a XamlTypeInvoker implementation.

NameDescription
System_CAPS_pubpropertyAllowedContentTypes

Gets a read-only collection of the types that are usable as the ContentProperty value for this XamlType.

System_CAPS_pubpropertyBaseType

Gets the XamlType for the immediate base type of this XAML type. Determination of this value is based on the underlying type of this XamlType and schema context.

System_CAPS_pubpropertyConstructionRequiresArguments

Gets a value that indicates whether this XamlType must have arguments (generic constraints through x:TypeArguments, initialization text, or other XAML techniques) to construct a valid instance of the type.

System_CAPS_pubpropertyContentProperty

Gets the XamlMember information for the content property of this XamlType.

System_CAPS_pubpropertyContentWrappers

Gets the types that are used to wrap content for a content property when it is not a strict type match, such as strings in a strongly typed Collection<T>.

System_CAPS_pubpropertyDeferringLoader

Gets the XamlValueConverter<TConverterBase> that represents the deferred loading conversion behavior for this type.

System_CAPS_pubpropertyInvoker

Gets the XamlTypeInvoker implementation that is associated with this XamlType.

System_CAPS_pubpropertyIsAmbient

Gets a value that indicates whether this XamlType represents an ambient type, as per the XAML definition.

System_CAPS_pubpropertyIsArray

Gets a value that indicates whether this XamlType represents an array.

System_CAPS_pubpropertyIsCollection

Gets a value that indicates whether this XamlType represents a collection.

System_CAPS_pubpropertyIsConstructible

Gets a value that indicates whether this XamlType represents a constructible type, as per the XAML definition.

System_CAPS_pubpropertyIsDictionary

Gets a value that indicates whether this XamlType represents a dictionary, as per the XAML definition.

System_CAPS_pubpropertyIsGeneric

Gets a value that indicates whether this XamlType represents a generic type.

System_CAPS_pubpropertyIsMarkupExtension

Gets a value that indicates whether this XamlType represents a markup extension.

System_CAPS_pubpropertyIsNameScope

Gets a value that indicates whether this XamlType represents a XAML namescope, as per the XAML definition.

System_CAPS_pubpropertyIsNameValid

Gets a value that indicates whether this XamlType is initialized by using a valid xamlName string as its Name.

System_CAPS_pubpropertyIsNullable

Gets a value that indicates whether this XamlType represents a nullable type, as per the XAML definition.

System_CAPS_pubpropertyIsPublic

Gets a value that indicates whether this XamlType represents a public type in the relevant type system.

System_CAPS_pubpropertyIsUnknown

Gets a value that indicates whether this XamlType represents a type that cannot be resolved in the underlying type system.

System_CAPS_pubpropertyIsUsableDuringInitialization

Gets a value that indicates whether this XamlType is built top-down during XAML initialization.

System_CAPS_pubpropertyIsWhitespaceSignificantCollection

Gets a value that indicates whether this XamlType represents a whitespace significant collection, as per the XML definition.

System_CAPS_pubpropertyIsXData

Gets a value that indicates whether this XamlType represents XML XDATA, as per the XAML definition.

System_CAPS_pubpropertyItemType

Gets a value that provides the type information for the Items property of this XamlType.

System_CAPS_pubpropertyKeyType

Gets a value that provides the type information for the key property of this XamlType, if the XamlType represents a dictionary.

System_CAPS_pubpropertyMarkupExtensionReturnType

Gets a value that provides the type information for the returned ProvideValue of this XamlType, if it represents a markup extension.

System_CAPS_pubpropertyName

Gets the string name of the type that this XamlType represents.

System_CAPS_pubpropertyPreferredXamlNamespace

Gets the single XAML namespace that is the primary XAML namespace for this XamlType.

System_CAPS_pubpropertySchemaContext

Gets the active XamlSchemaContext for processing this XamlType.

System_CAPS_pubpropertyTrimSurroundingWhitespace

Gets a value that indicates whether this XamlType has whitespace handling behavior for serialization that trims the surrounding whitespace in its content.

System_CAPS_pubpropertyTypeArguments

Gets a list of type arguments for cases where this XamlType represents a generic.

System_CAPS_pubpropertyTypeConverter

Gets a XamlValueConverter<TConverterBase> with TypeConverter constraint that represents type conversion behavior for values of this XamlType.

System_CAPS_pubpropertyUnderlyingType

Gets the CLR Type that underlies this XamlType.

System_CAPS_pubpropertyValueSerializer

Gets a XamlValueConverter<TConverterBase> with ValueSerializer constraint that represents value serialization behavior for values of this XamlType.

NameDescription
System_CAPS_pubmethodCanAssignTo(XamlType)

Returns a value that indicates whether an instance of this XamlType has the specified XamlType in its list of assignable types.

System_CAPS_pubmethodEquals(Object)

Indicates whether the current object is equal to another object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodEquals(XamlType)

Indicates whether the current object is equal to another object of the same type.

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_pubmethodGetAliasedProperty(XamlDirective)

Returns the XAML member that is aliased to a XAML directive by this XamlType.

System_CAPS_pubmethodGetAllAttachableMembers()

Returns a collection that contains all the attachable properties that are exposed by this XamlType.

System_CAPS_pubmethodGetAllMembers()

Returns a collection that contains all the members that are exposed by this XamlType.

System_CAPS_pubmethodGetAttachableMember(String)

Returns a XamlMember representing a specific named attachable member of this XamlType.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetMember(String)

Returns a XamlMember for a specific named member from this XamlType.

System_CAPS_pubmethodGetPositionalParameters(Int32)

For markup extension types, returns the types of the positional parameters that are supported in a specific markup extension usage for this XamlType.

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodGetXamlNamespaces()

Returns a list of string identifiers for XAML namespaces that the type is included in.

System_CAPS_protmethodLookupAliasedProperty(XamlDirective)

Returns the XAML member that is aliased to a XAML directive by this XamlType.

System_CAPS_protmethodLookupAllAttachableMembers()

Returns an enumerable set that contains all attachable properties that are exposed by this XamlType.

System_CAPS_protmethodLookupAllMembers()

Returns an enumerable set that contains all the members that are exposed by this XamlType.

System_CAPS_protmethodLookupAllowedContentTypes()

Returns a list of the types that are usable as the ContentProperty value for this XamlType.

System_CAPS_protmethodLookupAttachableMember(String)

Returns a XamlMember for a specific named attachable from this XamlType.

System_CAPS_protmethodLookupBaseType()

Returns the XamlType for the immediate base type of this XAML type. Determination of this value is based on the underlying type of this XamlType and schema context.

System_CAPS_protmethodLookupCollectionKind()

Returns a value of the XamlCollectionKind enumeration that declares which specific collection type this XamlType uses.

System_CAPS_protmethodLookupConstructionRequiresArguments()

Returns a value that indicates whether this XamlType must have arguments (generic constraints through x:TypeArguments, initialization text, or other XAML techniques) to construct a valid instance of the type.

System_CAPS_protmethodLookupContentProperty()

Returns XamlMember information for the content property of this XamlType.

System_CAPS_protmethodLookupContentWrappers()

Gets a list of XamlType values that represent the content wrappers for this XamlType.

System_CAPS_protmethodLookupCustomAttributeProvider()

When implemented in a derived class, returns an ICustomAttributeProvider implementation.

System_CAPS_protmethodLookupDeferringLoader()

Returns a XamlValueConverter<TConverterBase> object, which is used for deferred loading of XAML-declared objects.

System_CAPS_protmethodLookupInvoker()

Returns a XamlTypeInvoker that is associated with this XamlType.

System_CAPS_protmethodLookupIsAmbient()

Returns a value that indicates whether this XamlType represents an ambient type, as per the XAML definition.

System_CAPS_protmethodLookupIsConstructible()

Returns a value that indicates whether this XamlType represents a constructible type, as per the XAML definition.

System_CAPS_protmethodLookupIsMarkupExtension()

Returns a value that indicates whether this XamlType represents a markup extension.

System_CAPS_protmethodLookupIsNameScope()

Returns a value that indicates whether this XamlType represents a XAML namescope, as per the XAML definition.

System_CAPS_protmethodLookupIsNullable()

Returns a value that indicates whether this XamlType represents a nullable type, as per the XAML definition.

System_CAPS_protmethodLookupIsPublic()

Returns a value that indicates whether this XamlType represents a public type in the relevant type system.

System_CAPS_protmethodLookupIsUnknown()

Returns a value that indicates whether this XamlType represents a type that cannot be resolved in the underlying type system.

System_CAPS_protmethodLookupIsWhitespaceSignificantCollection()

Returns a value that indicates whether this XamlType represents a whitespace significant collection, as per the XML definition.

System_CAPS_protmethodLookupIsXData()

Returns a value that indicates whether this XamlType represents XML XDATA, as per the XAML definition.

System_CAPS_protmethodLookupItemType()

Returns a value that provides the type information for the Items property of this XamlType.

System_CAPS_protmethodLookupKeyType()

Returns a value that provides the type information for the key property of this XamlType, if the XamlType represents a dictionary.

System_CAPS_protmethodLookupMarkupExtensionReturnType()

Returns a value that provides the type information for the returned ProvideValue of this XamlType, if it represents a markup extension.

System_CAPS_protmethodLookupMember(String, Boolean)

Returns the XamlMember for a specific named member from this XamlType.

System_CAPS_protmethodLookupPositionalParameters(Int32)

For markup extension types, returns the types of the positional parameters that are supported in a specific markup extension usage for this XamlType.

System_CAPS_protmethodLookupSetMarkupExtensionHandler()

Returns a handler callback to use for the set operations of markup extensions.

System_CAPS_protmethodLookupSetTypeConverterHandler()

Returns a handler to use for type converter setting cases.

System_CAPS_protmethodLookupTrimSurroundingWhitespace()

Returns a value that indicates whether this XamlType should be serialized using a mode that trims surrounding whitespace.

System_CAPS_protmethodLookupTypeConverter()

Returns a XamlValueConverter<TConverterBase> that has a TypeConverter constraint, which represents type-conversion behavior for values of this XamlType.

System_CAPS_protmethodLookupUnderlyingType()

Returns the CLR Type that underlies this XamlType.

System_CAPS_protmethodLookupUsableDuringInitialization()

Returns a value that indicates whether this XamlType is built top-down during XAML initialization.

System_CAPS_protmethodLookupValueSerializer()

Returns a XamlValueConverter<TConverterBase> that has a ValueSerializer constraint, which represents value serialization behavior for values of this XamlType.

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodToString()

Returns a string representation of this XamlType.(Overrides Object.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(XamlType, XamlType)

Determines whether two specified XamlType objects have the same value.

System_CAPS_puboperatorSystem_CAPS_staticInequality(XamlType, XamlType)

Determines whether two specified XamlType objects have different values.

Many APIs in the XamlType class provide information about XAML types, where the concept they report on is similar to particular sections of the XAML specification [MS-XAML].

XamlType is used extensively in the .NET Framework XAML Services API for reporting information about a XAML type. XamlType reports the information that you might need to know about a XAML type in order to work with an instance or to access its members from a XAML node stream, or a similar XAML representation. Its reporting is similar to how the Type in the CLR type system, together with reflection classes such as MemberInfo, provide information about a CLR type and its usage.

To extend the XAML type system, you can derive from XamlType. To do so effectively, you might also need to implement a XamlTypeInvoker. The XamlTypeInvoker enables the generalized XAML type system to work with the type system backing that you specify as part of the invocation behavior. The specific custom XamlTypeInvoker provides a way to reduce the dependencies on the CLR type system, which are used by the default XamlType behavior.

.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:
© 2016 Microsoft