IMoniker Interface

IMoniker Interface

 

Provides the managed definition of the IMoniker interface, with COM functionality from IPersist and IPersistStream.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

[GuidAttribute("0000000f-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IMoniker

NameDescription
System_CAPS_pubmethodBindToObject(IBindCtx^, IMoniker^, Guid%, Object^%)

Uses the moniker to bind to the object that it identifies.

System_CAPS_pubmethodBindToStorage(IBindCtx^, IMoniker^, Guid%, Object^%)

Retrieves an interface pointer to the storage that contains the object identified by the moniker.

System_CAPS_pubmethodCommonPrefixWith(IMoniker^, IMoniker^%)

Creates a new moniker based on the common prefix that this moniker shares with another moniker.

System_CAPS_pubmethodComposeWith(IMoniker^, Boolean, IMoniker^%)

Combines the current moniker with another moniker, creating a new composite moniker.

System_CAPS_pubmethodEnum(Boolean, IEnumMoniker^%)

Supplies a pointer to an enumerator that can enumerate the components of a composite moniker.

System_CAPS_pubmethodGetClassID(Guid%)

Retrieves the class identifier (CLSID) of an object.

System_CAPS_pubmethodGetDisplayName(IBindCtx^, IMoniker^, String^%)

Gets the display name, which is a user-readable representation of the current moniker.

System_CAPS_pubmethodGetSizeMax(Int64%)

Returns the size, in bytes, of the stream needed to save the object.

System_CAPS_pubmethodGetTimeOfLastChange(IBindCtx^, IMoniker^, FILETIME%)

Provides a number representing the time that the object identified by the current moniker was last changed.

System_CAPS_pubmethodHash(Int32%)

Calculates a 32-bit integer using the internal state of the moniker.

System_CAPS_pubmethodInverse(IMoniker^%)

Provides a moniker that, when composed to the right of the current moniker or one of similar structure, composes to nothing.

System_CAPS_pubmethodIsDirty()

Checks the object for changes since it was last saved.

System_CAPS_pubmethodIsEqual(IMoniker^)

Compares the current moniker with a specified moniker and indicates whether they are identical.

System_CAPS_pubmethodIsRunning(IBindCtx^, IMoniker^, IMoniker^)

Determines whether the object that is identified by the current moniker is currently loaded and running.

System_CAPS_pubmethodIsSystemMoniker(Int32%)

Indicates whether this moniker is of one of the system-supplied moniker classes.

System_CAPS_pubmethodLoad(IStream^)

Initializes an object from the stream where it was previously saved.

System_CAPS_pubmethodParseDisplayName(IBindCtx^, IMoniker^, String^, Int32%, IMoniker^%)

Reads as many characters of the specified display name as the ParseDisplayName understands and builds a moniker corresponding to the portion read.

System_CAPS_pubmethodReduce(IBindCtx^, Int32, IMoniker^%, IMoniker^%)

Returns a reduced moniker, which is another moniker that refers to the same object as the current moniker but can be bound with equal or greater efficiency.

System_CAPS_pubmethodRelativePathTo(IMoniker^, IMoniker^%)

Supplies a moniker that, when appended to the current moniker (or one with a similar structure), yields the specified moniker.

System_CAPS_pubmethodSave(IStream^, Boolean)

Saves an object to the specified stream.

For more information about the IMoniker, IPersist, and IPersistStream interfaces, see 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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft