|
2660 | 2660 |
|
2661 | 2661 | The <xref:System.Runtime.InteropServices.Marshal.GetComInterfaceForObject%28System.Object%2CSystem.Type%29> method overload allows query interface customization by default. To specify whether to apply query interface customization, use the <xref:System.Runtime.InteropServices.Marshal.GetComInterfaceForObject%28System.Object%2CSystem.Type%2CSystem.Runtime.InteropServices.CustomQueryInterfaceMode%29> method overload.
|
2662 | 2662 |
|
2663 |
| - For additional information, see the [COM Callable Wrapper](~/docs/framework/interop/com-callable-wrapper.md), [Runtime Callable Wrapper](~/docs/framework/interop/runtime-callable-wrapper.md), and [Introducing the Class Interface](https://msdn.microsoft.com/library/733c0dd2-12e5-46e6-8de1-39d5b25df024) topics. |
| 2663 | + For additional information, see the [COM Callable Wrapper](~/docs/framework/interop/com-callable-wrapper.md) and [Runtime Callable Wrapper](~/docs/framework/interop/runtime-callable-wrapper.md) articles. |
2664 | 2664 |
|
2665 | 2665 | ]]></format>
|
2666 | 2666 | </remarks>
|
|
2829 | 2829 |
|
2830 | 2830 | The <xref:System.Runtime.InteropServices.Marshal.GetComInterfaceForObject%60%602%28%60%600%29> method overload allows query interface customization by default. To specify whether to apply query interface customization, use the <xref:System.Runtime.InteropServices.Marshal.GetComInterfaceForObject%28System.Object%2CSystem.Type%2CSystem.Runtime.InteropServices.CustomQueryInterfaceMode%29> method overload.
|
2831 | 2831 |
|
2832 |
| - For additional information, see the [COM Callable Wrapper](~/docs/framework/interop/com-callable-wrapper.md), [Runtime Callable Wrapper](~/docs/framework/interop/runtime-callable-wrapper.md), and [Introducing the Class Interface](https://msdn.microsoft.com/library/733c0dd2-12e5-46e6-8de1-39d5b25df024) topics. |
| 2832 | + For additional information, see the [COM Callable Wrapper](~/docs/framework/interop/com-callable-wrapper.md) and [Runtime Callable Wrapper](~/docs/framework/interop/runtime-callable-wrapper.md) articles. |
2833 | 2833 |
|
2834 | 2834 | ]]></format>
|
2835 | 2835 | </remarks>
|
|
3021 | 3021 | ## Remarks
|
3022 | 3022 | The zero-based slot number returned by this method accounts for three [IUnknown](https://go.microsoft.com/fwlink/?LinkId=148003) and possibly four [IDispatch](https://msdn.microsoft.com/library/ebbff4bc-36b2-4861-9efa-ffa45e013eb5) methods, making the value of the first available slot either 3 or 7. <xref:System.Runtime.InteropServices.Marshal.GetComSlotForMethodInfo%2A> provides the opposite functionality of <xref:System.Runtime.InteropServices.Marshal.GetMethodInfoForComSlot%2A?displayProperty=nameWithType>.
|
3023 | 3023 |
|
3024 |
| - You can use this method to retrieve slot numbers for members of interfaces that are not visible from COM and for members of private interfaces. The slot numbers returned correspond to the v-table numbers that would be reserved if the type was exposed to COM. COM-invisible members actually occupy a slot in an exposed v-table, even though the COM client cannot use the slot. You cannot use <xref:System.Runtime.InteropServices.Marshal.GetComSlotForMethodInfo%2A> on a class interface by passing <xref:System.Reflection.MemberInfo> from a class. For additional information, see [Introducing the Class Interface](https://msdn.microsoft.com/library/733c0dd2-12e5-46e6-8de1-39d5b25df024). |
| 3024 | + You can use this method to retrieve slot numbers for members of interfaces that are not visible from COM and for members of private interfaces. The slot numbers returned correspond to the v-table numbers that would be reserved if the type was exposed to COM. COM-invisible members actually occupy a slot in an exposed v-table, even though the COM client cannot use the slot. You cannot use <xref:System.Runtime.InteropServices.Marshal.GetComSlotForMethodInfo%2A> on a class interface by passing <xref:System.Reflection.MemberInfo> from a class. For additional information, see [Introducing the class interface](~/docs/framework/interop/com-callable-wrapper.md#introducing-the-class-interface). |
3025 | 3025 |
|
3026 | 3026 | ]]></format>
|
3027 | 3027 | </remarks>
|
|
3234 | 3234 | <format type="text/markdown"><. |
| 3237 | + 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 <xref:System.Runtime.InteropServices.Marshal.GetEndComSlot%2A> and <xref:System.Runtime.InteropServices.Marshal.GetStartComSlot%2A?displayProperty=nameWithType> in conjunction with <xref:System.Runtime.InteropServices.Marshal.GetMethodInfoForComSlot%2A?displayProperty=nameWithType> to pass slots within a specified range. For additional information, see [Introducing the class interface](~/docs/framework/interop/com-callable-wrapper.md#introducing-the-class-interface). |
3238 | 3238 |
|
3239 | 3239 | ]]></format>
|
3240 | 3240 | </remarks>
|
@@ -4828,7 +4828,7 @@ There is a difference in the behavior of the `GetLastWin32Error` method on .NET
|
4828 | 4828 | <format type="text/markdown"><. |
| 4831 | + This method returns the zero-based v-table number for an interface or a class. When used on a class, the slot number that is 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 <xref:System.Runtime.InteropServices.Marshal.GetStartComSlot%2A> and <xref:System.Runtime.InteropServices.Marshal.GetEndComSlot%2A?displayProperty=nameWithType> in conjunction with <xref:System.Runtime.InteropServices.Marshal.GetMethodInfoForComSlot%2A?displayProperty=nameWithType> to pass slots within a specified range. For additional information, see [Introducing the class interface](~/docs/framework/interop/com-callable-wrapper.md#introducing-the-class-interface). |
4832 | 4832 |
|
4833 | 4833 | ]]></format>
|
4834 | 4834 | </remarks>
|
|
0 commit comments