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.​IMoniker
Assembly: System.Runtime.InteropServices
Provides the managed definition of the <see langword="IMoniker" /> interface, with COM functionality from <see langword="IPersist" /> and <see langword="IPersistStream" /> .
Methods
public
void
BindToObject​(IBindCtx pbc,
IMoniker pmkToLeft,
Guid& riidResult,
Object& ppvResult)
public
void
BindToStorage​(IBindCtx pbc,
IMoniker pmkToLeft,
Guid& riid,
Object& ppvObj)
public
void
ComposeWith​(IMoniker pmkRight,
bool fOnlyIfNotGeneric,
IMoniker& ppmkComposite)
public
void
GetDisplayName​(IBindCtx pbc,
IMoniker pmkToLeft,
String& ppszDisplayName)
public
void
GetTimeOfLastChange​(IBindCtx pbc,
IMoniker pmkToLeft,
FILETIME& pFileTime)
public
int
IsDirty​() Returns An <see langword="S_OK" /> <see langword="HRESULT" /> value if the object has changed; otherwise, an <see langword="S_FALSE" /> <see langword="HRESULT" /> value.
Checks the object for changes since it was last saved.
public
int
IsEqual​(IMoniker pmkOtherMoniker)
pmkOtherMoniker
A reference to the moniker to use for comparison.
Returns An <see langword="S_OK" /> <see langword="HRESULT" /> value if the monikers are identical; otherwise, an <see langword="S_FALSE" /> <see langword="HRESULT" /> value.
Compares the current moniker with a specified moniker and indicates whether they are identical.
public
int
IsRunning​(IBindCtx pbc,
IMoniker pmkToLeft,
IMoniker pmkNewlyRunning)
pbc
A reference to the bind context to use in this binding operation.
pmkToLeft
A reference to the moniker to the left of the current moniker if the current moniker is part of a composite.
pmkNewlyRunning
A reference to the moniker most recently added to the Running Object Table (ROT).
Returns An <see langword="S_OK" /> <see langword="HRESULT" /> value if the moniker is running; an <see langword="S_FALSE" /> <see langword="HRESULT" /> value if the moniker is not running; or an <see langword="E_UNEXPECTED" /> <see langword="HRESULT" /> value.
Determines whether the object that is identified by the current moniker is currently loaded and running.
Initializes an object from the stream where it was previously saved.
public
void
ParseDisplayName​(IBindCtx pbc,
IMoniker pmkToLeft,
string pszDisplayName,
Int32& pchEaten,
IMoniker& ppmkOut)
public
void
Reduce​(IBindCtx pbc,
int dwReduceHowFar,
IMoniker& ppmkToLeft,
IMoniker& ppmkReduced)
public
void
Save​(IStream pStm,
bool fClearDirty)
pStm
The stream to which the object is saved.
fClearDirty
<see langword="true" /> to clear the modified flag after the save is complete; otherwise <see langword="false" /> .
Saves an object to the specified stream.