Marshal.GetIDispatchForObjectInContext(Object) Method
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.
Returns an IDispatch interface pointer from a managed object, if the caller is in the same context as that object.
public:
static IntPtr GetIDispatchForObjectInContext(System::Object ^ o);
public static IntPtr GetIDispatchForObjectInContext(object o);
[System.Security.SecurityCritical]
public static IntPtr GetIDispatchForObjectInContext(object o);
static member GetIDispatchForObjectInContext : obj -> nativeint
[<System.Security.SecurityCritical>]
static member GetIDispatchForObjectInContext : obj -> nativeint
Public Shared Function GetIDispatchForObjectInContext (o As Object) As IntPtr
- o
- Object
The object whose IDispatch
interface is requested.
nativeint
The IDispatch
interface pointer for the specified object, or null
if the caller is not in the same context as the specified object.
- Attributes
o
does not support the requested interface.
o
is null
.
This method is the same as GetIDispatchForObject except that it returns null
if the caller is not in the same context as the object.
Продукт | Версии |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: