Marshal.GetTypeInfoName Méthode

Définition

Récupère le nom du type représenté par un objet ITypeInfo.

Surcharges

GetTypeInfoName(UCOMITypeInfo)
Obsolète.

Récupère le nom du type représenté par un objet ITypeInfo.

GetTypeInfoName(ITypeInfo)

Récupère le nom du type représenté par un objet ITypeInfo.

GetTypeInfoName(UCOMITypeInfo)

Attention

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

Récupère le nom du type représenté par un objet ITypeInfo.

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);

Paramètres

pTI
UCOMITypeInfo

Objet qui représente un pointeur ITypeInfo.

Retours

Nom du type vers lequel pointe le paramètre pTI.

Attributs

Remarques

Vous pouvez également récupérer le nom du type représenté par un ITypeInfo objet en appelant la UCOMITypeInfo.GetDocumentation méthode et en passant -1 pour son premier paramètre.

Voir aussi

S’applique à

.NET Framework 4.8.1 et autres versions
Produit Versions (Obsolète)
.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

Récupère le nom du type représenté par un objet ITypeInfo.

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);

Paramètres

typeInfo
ITypeInfo

Objet qui représente un pointeur ITypeInfo.

Retours

Nom du type vers lequel pointe le paramètre typeInfo.

Attributs

Exceptions

Le paramètre typeInfo a la valeur null.

Remarques

Vous pouvez également récupérer le nom du type représenté par un ITypeInfo en appelant la UCOMITypeInfo.GetDocumentation méthode et en passant -1 pour son premier paramètre.

Voir aussi

S’applique à

.NET 9 et autres versions
Produit Versions
.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
.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