Marshal.GenerateProgIdForType(Type) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した型のプログラム識別子 (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 が生成されます。