Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
'Declaration
<GuidAttribute("0000000f-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IMoniker

The IMoniker type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBindToObjectUses the moniker to bind to the object that it identifies.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBindToStorageRetrieves an interface pointer to the storage that contains the object identified by the moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsCommonPrefixWithCreates a new moniker based on the common prefix that this moniker shares with another moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsComposeWithCombines the current moniker with another moniker, creating a new composite moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEnumSupplies a pointer to an enumerator that can enumerate the components of a composite moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetClassIDRetrieves the class identifier (CLSID) of an object.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetDisplayNameGets the display name, which is a user-readable representation of the current moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetSizeMaxReturns the size, in bytes, of the stream needed to save the object.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTimeOfLastChangeProvides a number representing the time that the object identified by the current moniker was last changed.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsHashCalculates a 32-bit integer using the internal state of the moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsInverseProvides a moniker that, when composed to the right of the current moniker or one of similar structure, composes to nothing.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsIsDirtyChecks the object for changes since it was last saved.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsIsEqualCompares the current moniker with a specified moniker and indicates whether they are identical.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsIsRunningDetermines whether the object that is identified by the current moniker is currently loaded and running.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsIsSystemMonikerIndicates whether this moniker is of one of the system-supplied moniker classes.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsLoadInitializes an object from the stream where it was previously saved.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsParseDisplayNameReads as many characters of the specified display name as the ParseDisplayName understands and builds a moniker corresponding to the portion read.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsReduceReturns 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.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsRelativePathToSupplies a moniker that, when appended to the current moniker (or one with a similar structure), yields the specified moniker.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsSaveSaves an object to the specified stream.
Top

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.