ComObject Class

Definition

Base class for all COM source-generated runtime callable wrappers (RCWs).

public ref class ComObject sealed : System::Runtime::InteropServices::IDynamicInterfaceCastable, System::Runtime::InteropServices::Marshalling::IUnmanagedVirtualMethodTableProvider
public sealed class ComObject : System.Runtime.InteropServices.IDynamicInterfaceCastable, System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider
type ComObject = class
    interface IDynamicInterfaceCastable
    interface IUnmanagedVirtualMethodTableProvider
Public NotInheritable Class ComObject
Implements IDynamicInterfaceCastable, IUnmanagedVirtualMethodTableProvider
Inheritance
ComObject
Implements

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

Releases all references to the underlying COM object.

FinalRelease()

Releases all references owned by this ComObject if it is a unique instance.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDynamicInterfaceCastable.GetInterfaceImplementation(RuntimeTypeHandle)

Determines the type to use to dispatch the specified interface type. This method is called during interface dispatch when the given interface type can't be found in the class's metadata.

IDynamicInterfaceCastable.IsInterfaceImplemented(RuntimeTypeHandle, Boolean)

Determines if this object can be cast to the specified interface type. This method is called when an implementing class instance is cast to an interface type that's not contained in the class's metadata.

IUnmanagedVirtualMethodTableProvider.GetVirtualMethodTableInfoForKey(Type)

Get the information about the virtual method table for a given unmanaged interface type represented by type.

Applies to