TypeName structure

Applies to Windows and Windows Phone

Substitutes for System.Type such that type information reported by other APIs does not have a dependency on the common language runtime (CLR). This structure is used as a value by properties such as UnderlyingType and Type.

.NET:  This type appears as System.Type.

Syntax


public value struct TypeName

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The TypeName structure inherits from the IUnknown interface. TypeName also has these types of members:

Fields

The TypeName structure has these fields.

FieldData typeDescription
Kind

TypeKind

Basic guidance regarding the origin of the type.

Name

String

Name of the type.

 

Properties

The TypeName structure has these properties.

PropertyAccess typeDescription

Kind

Read/writeGets or sets the TypeKind classification of programming type that this TypeName represents.

Name

Read/writeGets or sets the name of the programming type that this TypeName represents.

 

Remarks

When building Windows Runtime apps with the Microsoft .NET Framework, this type is hidden and developers should use the System.Type type.

Projection and members of TypeName

If you are using Visual C++ component extensions (C++/CX), then Name and Kind are read-write properties, not fields. This definition of the structure is provided by platform.winmd, as part of the extension behavior.

If you are programming with C++ using the Windows Runtime Template Library (WRL), then Name and Kind are fields.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml::Interop

Metadata

Windows.winmd
Platform.winmd

See also

System.Type
IXamlType
Type System (C++/CX)

 

 

Show:
© 2014 Microsoft