Marshal.GenerateProgIdForType(Type) メソッド

定義

指定した型のプログラム識別子 (ProgID) を返します。

public:
 static System::String ^ GenerateProgIdForType(Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Built-in COM support is not trim compatible", Url="https://aka.ms/dotnet-illink/com")]
public static string? GenerateProgIdForType(Type type);
public static string? GenerateProgIdForType(Type type);
public static string GenerateProgIdForType(Type type);
[System.Security.SecurityCritical]
public static string GenerateProgIdForType(Type type);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Built-in COM support is not trim compatible", Url="https://aka.ms/dotnet-illink/com")>]
static member GenerateProgIdForType : Type -> string
static member GenerateProgIdForType : Type -> string
[<System.Security.SecurityCritical>]
static member GenerateProgIdForType : Type -> string
Public Shared Function GenerateProgIdForType (type As Type) As String

パラメーター

type
Type

ProgID を取得する型。

返品

指定した型の ProgID。

属性

例外

type パラメーターは、COM で作成できるクラスではありません。 クラスはパブリックであり、パラメーターなしのパブリック コンストラクターを持ち、COM を参照できる必要があります。

type パラメーターはnull

注釈

型にメタデータに ProgID がある場合、その ProgID が返されます。 それ以外の場合は、型の完全修飾名に基づいて ProgID が生成されます。

適用対象