Marshal.GenerateProgIdForType(Type) 메서드

정의

지정된 형식에 대한 ProgID(프로그래밍 식별자)를 반환합니다.

public:
 static System::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);
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가 생성됩니다.

적용 대상