Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Runtime.​InteropServices.​ComTypes.​IBindCtx
Assembly: System.Runtime.InteropServices
Provides the managed definition of the <see langword="IBindCtx" /> interface.
Methods
public
void
RegisterObjectBound​(object punk)
punk
The object to register for release.
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.
public
void
RegisterObjectParam​(string pszKey,
object punk)
pszKey
The name to register <paramref name="punk" /> with.
punk
The object to register.
Registers the specified object pointer under the specified name in the internally maintained table of object pointers.
public
void
ReleaseBoundObjects​()
Releases all the objects currently registered with the bind context by using the <see cref="M:System.Runtime.InteropServices.ComTypes.IBindCtx.RegisterObjectBound(System.Object)" /> method.
public
void
RevokeObjectBound​(object punk)
punk
The object to unregister for release.
Removes the object from the set of registered objects that need to be released.
public
int
RevokeObjectParam​(string pszKey)
pszKey
The key to unregister.
Returns An <see langword="S_OK" /> <see langword="HRESULT" /> value if the specified key was successfully removed from the table; otherwise, an <see langword="S_FALSE" /> <see langword="HRESULT" /> value.
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.