Marshal.GetTypeInfoName 方法

定义

检索由 ITypeInfo 对象表示的类型的名称。

重载

GetTypeInfoName(UCOMITypeInfo)
已过时。
已过时。

检索由 ITypeInfo 对象表示的类型的名称。

GetTypeInfoName(ITypeInfo)

检索由 ITypeInfo 对象表示的类型的名称。

GetTypeInfoName(UCOMITypeInfo)

注意

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

注意

现已弃用此 API。

检索由 ITypeInfo 对象表示的类型的名称。

public:
 static System::String ^ GetTypeInfoName(System::Runtime::InteropServices::UCOMITypeInfo ^ pTI);
public static string GetTypeInfoName (System.Runtime.InteropServices.UCOMITypeInfo pTI);
[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);
[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);
[System.Obsolete]
public static string GetTypeInfoName (System.Runtime.InteropServices.UCOMITypeInfo pTI);
static member GetTypeInfoName : System.Runtime.InteropServices.UCOMITypeInfo -> string
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeInfoName(ITypeInfo pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
static member GetTypeInfoName : System.Runtime.InteropServices.UCOMITypeInfo -> string
[<System.Obsolete("Use System.Runtime.InteropServices.Marshal.GetTypeInfoName(ITypeInfo pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", false)>]
[<System.Security.SecurityCritical>]
static member GetTypeInfoName : System.Runtime.InteropServices.UCOMITypeInfo -> string
[<System.Obsolete>]
static member GetTypeInfoName : System.Runtime.InteropServices.UCOMITypeInfo -> string
Public Shared Function GetTypeInfoName (pTI As UCOMITypeInfo) As String

参数

pTI
UCOMITypeInfo

一个表示 ITypeInfo 指针的对象。

返回

String

pTI 参数指向的类型的名称。

属性

注解

还可以通过调用UCOMITypeInfo.GetDocumentation方法并为其第一个ITypeInfo参数传递 -1 来检索由对象表示的类型的名称。

另请参阅

适用于

GetTypeInfoName(ITypeInfo)

检索由 ITypeInfo 对象表示的类型的名称。

public:
 static System::String ^ GetTypeInfoName(System::Runtime::InteropServices::ComTypes::ITypeInfo ^ typeInfo);
[System.Security.SecurityCritical]
public static string GetTypeInfoName (System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static string GetTypeInfoName (System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo);
public static string GetTypeInfoName (System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo);
[<System.Security.SecurityCritical>]
static member GetTypeInfoName : System.Runtime.InteropServices.ComTypes.ITypeInfo -> string
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member GetTypeInfoName : System.Runtime.InteropServices.ComTypes.ITypeInfo -> string
static member GetTypeInfoName : System.Runtime.InteropServices.ComTypes.ITypeInfo -> string
Public Shared Function GetTypeInfoName (typeInfo As ITypeInfo) As String

参数

typeInfo
ITypeInfo

一个表示 ITypeInfo 指针的对象。

返回

String

typeInfo 参数指向的类型的名称。

属性

例外

typeInfo 参数为 null

注解

还可以通过调用UCOMITypeInfo.GetDocumentation方法并为其第一个参数传递 -1 来检索由方法ITypeInfo表示的类型的名称。

另请参阅

适用于