Marshal.GetTypeInfoName Method

Definition

Retrieves the name of the type represented by an ITypeInfo object.

Overloads

GetTypeInfoName(UCOMITypeInfo)
Obsolete.

Retrieves the name of the type represented by an ITypeInfo object.

GetTypeInfoName(ITypeInfo)

Retrieves the name of the type represented by an ITypeInfo object.

GetTypeInfoName(UCOMITypeInfo)

Caution

Use System.Runtime.InteropServices.Marshal.GetTypeInfoName(ITypeInfo pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.

Retrieves the name of the type represented by an ITypeInfo object.

C#
public static string GetTypeInfoName(System.Runtime.InteropServices.UCOMITypeInfo pTI);
C#
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeInfoName(ITypeInfo pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
public static string GetTypeInfoName(System.Runtime.InteropServices.UCOMITypeInfo pTI);
C#
[System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeInfoName(ITypeInfo pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)]
[System.Security.SecurityCritical]
public static string GetTypeInfoName(System.Runtime.InteropServices.UCOMITypeInfo pTI);

Parameters

pTI
UCOMITypeInfo

An object that represents an ITypeInfo pointer.

Returns

The name of the type that the pTI parameter points to.

Attributes

Remarks

You can also retrieve the name of the type represented by an ITypeInfo object by calling the UCOMITypeInfo.GetDocumentation method and passing -1 for its first parameter.

See also

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid (aegunud)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

GetTypeInfoName(ITypeInfo)

Source:
Marshal.NoCom.cs
Source:
Marshal.NoCom.cs
Source:
Marshal.NoCom.cs

Retrieves the name of the type represented by an ITypeInfo object.

C#
[System.Security.SecurityCritical]
public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo);
C#
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo);
C#
public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo);

Parameters

typeInfo
ITypeInfo

An object that represents an ITypeInfo pointer.

Returns

The name of the type that the typeInfo parameter points to.

Attributes

Exceptions

The typeInfo parameter is null.

Remarks

You can also retrieve the name of the type represented by an ITypeInfo by calling the UCOMITypeInfo.GetDocumentation method and passing -1 for its first parameter.

See also

Applies to

.NET 10 ja muud versioonid
Toode Versioonid
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0