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)

'Declaration
<DebuggerDisplayAttribute("{{{Namespace}}}{Name}{TypeArgStringForDebugger}")> _
Public Class XamlTypeName

The XamlTypeName type exposes the following members.

  NameDescription
Public methodXamlTypeNameInitializes 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(Of 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 the default hash function. (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 methodToStringConverts 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(Of 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.5.3, 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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft