Export (0) Print
Expand All

XamlTypeName Class

Provides a means to specify a XAML type in terms of name and namespace.

System.Object
  System.Xaml.Schema.XamlTypeName

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

public class XamlTypeName

The XamlTypeName type exposes the following members.

  NameDescription
Public methodXamlTypeName()Initializes a new instance of the XamlTypeName class.
Public methodXamlTypeName(XamlType)Initializes a new instance of the XamlTypeName class, based on an existing XamlType.
Public methodXamlTypeName(String, String)Initializes a new instance of the XamlTypeName class, based on name and namespace strings.
Public methodXamlTypeName(String, String, IEnumerable<XamlTypeName>)Initializes a new instance of the XamlTypeName class, based on name and namespace strings as well as an array of type arguments.
Top

  NameDescription
Public propertyNameGets the name used to construct this XamlTypeName.
Public propertyNamespaceGets the XAML namespace identifier used to construct this XamlTypeName.
Public propertyTypeArgumentsGets the type arguments used to construct this XamlTypeName.
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 a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberParseProvides a XamlTypeName value based on a type name and an object that can resolve a markup prefix into a namespace.
Public methodStatic memberParseListProvides a XamlTypeName value based on a string that can specify multiple type names, and an object that can resolve a markup prefix into a namespace.
Public methodToString()Converts the value of this XamlTypeName to its equivalent string representation. (Overrides Object.ToString().)
Public methodToString(INamespacePrefixLookup)Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of a type.
Public methodStatic memberToString(IList<XamlTypeName>, INamespacePrefixLookup)Converts the value of this XamlTypeName to its equivalent string representation, which can be used in markup syntax for an object element usage of multiple types.
Public methodStatic memberTryParseProvides a XamlTypeName value based on a type name and an object that can resolve a markup prefix into a namespace.
Public methodStatic memberTryParseListProvides a XamlTypeName value based on a string that can specify multiple type names, and an object that can resolve a markup prefix into a namespace.
Top

XamlType is the type information class in the XAML type system, whereas XamlTypeName is more of a data structure that provides different ways of specifying that type. XamlTypeName also provides static helper methods for generating a XamlTypeName by resolving an existing type identifier in a XAML namespace.

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

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

Community Additions

ADD
Show:
© 2014 Microsoft