Marshal.GetEndComSlot(Type) メソッド

定義

型が COM に公開されたときの仮想テーブル (V テーブルまたは 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 テーブル番号を返します。 クラスで使用する場合、返されるスロット番号はクラスのクラス インターフェイスを参照します。 クラス インターフェイスが自動ディスパッチの場合、ディスパッチ専用インターフェイスがマネージド クライアントに v テーブルを公開しないことを示すために、このメソッドは常に -1 を返します。 指定した範囲内のスロットを渡すために、および組Marshal.GetMethodInfoForComSlotみ合わせて使用GetEndComSlotMarshal.GetStartComSlotできます。 詳細については、「 クラス インターフェイスの概要」を参照してください。

適用対象

こちらもご覧ください