แก้ไข

แชร์ผ่าน


IBindCtx Interface

Definition

Provides the managed definition of the IBindCtx interface.

public interface class IBindCtx
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IBindCtx
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("0000000e-0000-0000-C000-000000000046")]
public interface IBindCtx
public interface IBindCtx
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IBindCtx = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("0000000e-0000-0000-C000-000000000046")>]
type IBindCtx = interface
type IBindCtx = interface
Public Interface IBindCtx
Attributes

Remarks

For more information, see the existing documentation for IBindCtx in the MSDN library.

The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see How to: Map HRESULTs and Exceptions.

Methods

EnumObjectParam(IEnumString)

Enumerates the strings that are the keys of the internally maintained table of contextual object parameters.

GetBindOptions(BIND_OPTS)

Returns the current binding options stored in the current bind context.

GetObjectParam(String, Object)

Looks up the given key in the internally maintained table of contextual object parameters and returns the corresponding object, if one exists.

GetRunningObjectTable(IRunningObjectTable)

Returns access to the Running Object Table (ROT) relevant to this binding process.

RegisterObjectBound(Object)

Registers the passed object as one of the objects that has been bound during a moniker operation and that should be released when the operation is complete.

RegisterObjectParam(String, Object)

Registers the specified object pointer under the specified name in the internally maintained table of object pointers.

ReleaseBoundObjects()

Releases all the objects currently registered with the bind context by using the RegisterObjectBound(Object) method.

RevokeObjectBound(Object)

Removes the object from the set of registered objects that need to be released.

RevokeObjectParam(String)

Revokes the registration of the object currently found under the specified key in the internally maintained table of contextual object parameters, if that key is currently registered.

SetBindOptions(BIND_OPTS)

Stores a block of parameters in the bind context. These parameters will apply to later UCOMIMoniker operations that use this bind context.

Applies to