Marshal.GetEndComSlot(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the last slot in the virtual function table (v-table or VTBL) of a type when exposed to COM.
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
Parameters
- t
- Type
A type that represents an interface or class.
Returns
The last VTBL slot of the interface when exposed to COM. If the t
parameter is a class, the returned VTBL slot is the last slot in the interface that is generated from the class.
- Attributes
Remarks
This method returns the zero-based, v-table number for an interface or a class. When used on a class, the slot number returned refers to the class interface for the class. If the class interface is auto-dispatch, this method always returns -1 to indicate that the dispatch-only interface does not expose a v-table to managed clients. You can use GetEndComSlot and Marshal.GetStartComSlot in conjunction with Marshal.GetMethodInfoForComSlot to pass slots within a specified range. For additional information, see Introducing the class interface.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om