Marshal.GetEndComSlot(Type) 메서드

정의

COM에 노출될 때 형식의 가상 함수 테이블(v-table 또는 VTBL)에서 마지막 슬롯을 검색합니다.

public:
 static int GetEndComSlot(Type ^ t);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static int GetEndComSlot (Type t);
public static int GetEndComSlot (Type t);
[System.Security.SecurityCritical]
public static int GetEndComSlot (Type t);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member GetEndComSlot : Type -> int
static member GetEndComSlot : Type -> int
[<System.Security.SecurityCritical>]
static member GetEndComSlot : Type -> int
Public Shared Function GetEndComSlot (t As Type) As Integer

매개 변수

t
Type

인터페이스나 클래스를 나타내는 형식입니다.

반환

Int32

COM에 노출될 때 인터페이스의 마지막 VTBL 슬롯입니다. t 매개 변수가 클래스인 경우 반환된 VTBL 슬롯은 클래스에서 생성되는 인터페이스에 있는 마지막 슬롯입니다.

특성

설명

이 메서드는 인터페이스 또는 클래스에 대해 0부터 시작하는 v 테이블 번호를 반환합니다. 클래스에서 사용되는 경우 반환되는 슬롯 번호는 클래스의 클래스 인터페이스를 참조합니다. 클래스 인터페이스가 자동 디스패치인 경우 이 메서드는 항상 -1을 반환하여 디스패치 전용 인터페이스가 v-테이블을 관리되는 클라이언트에 노출하지 않음을 나타냅니다. 지정된 범위 내에서 슬롯을 전달하는 데 사용 및 Marshal.GetStartComSlot 함께 Marshal.GetMethodInfoForComSlot 사용할 GetEndComSlot 수 있습니다. 자세한 내용은 클래스 인터페이스 소개를 참조하세요.

적용 대상

추가 정보