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에서 만들 수 있는 클래스가 아닙니다. 클래스는 public이어야 하고, 공용 매개 변수가 없는 생성자가 있어야 하며, COM이 표시되어야 합니다.

매개 변수는 type .입니다 null.

설명

형식에 메타데이터에 ProgID가 있는 경우 해당 ProgID가 반환됩니다. 그렇지 않으면 형식의 정규화된 이름을 기반으로 ProgID가 생성됩니다.

적용 대상