IMoniker Interface

Definição

Fornece a definição gerenciada da interface IMoniker, com a funcionalidade COM de IPersist e IPersistStream.Provides the managed definition of the IMoniker interface, with COM functionality from IPersist and IPersistStream.

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

Comentários

Para obter mais informações sobre IMoniker as IPersist interfaces, e IPersistStream , consulte a biblioteca MSDN.For more information about the IMoniker, IPersist, and IPersistStream interfaces, see the MSDN Library.

O Common Language Runtime gera uma exceção quando um método COM no código nativo retorna um HRESULT.The common language runtime throws an exception when a COM method in native code returns an HRESULT. Para obter mais informações, consulte como mapear HRESULTs e exceções.For more information, see How to: Map HRESULTs and Exceptions.

Métodos

BindToObject(IBindCtx, IMoniker, Guid, Object)

Usa o moniker para se associar ao objeto identificado por ele.Uses the moniker to bind to the object that it identifies.

BindToStorage(IBindCtx, IMoniker, Guid, Object)

Recupera um ponteiro de interface para o armazenamento que contém o objeto identificado pelo moniker.Retrieves an interface pointer to the storage that contains the object identified by the moniker.

CommonPrefixWith(IMoniker, IMoniker)

Cria um novo moniker com base no prefixo comum que esse moniker compartilha com outro moniker.Creates a new moniker based on the common prefix that this moniker shares with another moniker.

ComposeWith(IMoniker, Boolean, IMoniker)

Combina o moniker atual com outro moniker, criando um novo moniker de composição.Combines the current moniker with another moniker, creating a new composite moniker.

Enum(Boolean, IEnumMoniker)

Fornece um ponteiro a um enumerador que pode enumerar os componentes de um moniker de composição.Supplies a pointer to an enumerator that can enumerate the components of a composite moniker.

GetClassID(Guid)

Recupera o CLSID (identificador de classe) de um objeto.Retrieves the class identifier (CLSID) of an object.

GetDisplayName(IBindCtx, IMoniker, String)

Obtém o nome de exibição, que é uma representação legível para o usuário do moniker atual.Gets the display name, which is a user-readable representation of the current moniker.

GetSizeMax(Int64)

Retorna o tamanho em bytes do fluxo necessário para salvar o objeto.Returns the size, in bytes, of the stream needed to save the object.

GetTimeOfLastChange(IBindCtx, IMoniker, FILETIME)

Fornece um número que representa a hora em que o objeto identificado pelo moniker atual foi alterado pela última vez.Provides a number representing the time that the object identified by the current moniker was last changed.

Hash(Int32)

Calcula um inteiro de 32 bits usando o estado interno do moniker.Calculates a 32-bit integer using the internal state of the moniker.

Inverse(IMoniker)

Fornece um moniker que, quando composto à direita do moniker atual ou de uma estrutura semelhante, compõe com nada.Provides a moniker that, when composed to the right of the current moniker or one of similar structure, composes to nothing.

IsDirty()

Verifica se há alterações no objeto desde que foi salvo pela última vez.Checks the object for changes since it was last saved.

IsEqual(IMoniker)

Compara o moniker atual com um moniker especificado e indica se eles são idênticos.Compares the current moniker with a specified moniker and indicates whether they are identical.

IsRunning(IBindCtx, IMoniker, IMoniker)

Determina se o objeto identificado pelo moniker atual está sendo carregado e executado no momento.Determines whether the object that is identified by the current moniker is currently loaded and running.

IsSystemMoniker(Int32)

Indica se esse moniker é de uma das classes moniker fornecidas pelo sistema.Indicates whether this moniker is of one of the system-supplied moniker classes.

Load(IStream)

Inicializa um objeto do fluxo de onde ele foi salvo anteriormente.Initializes an object from the stream where it was previously saved.

ParseDisplayName(IBindCtx, IMoniker, String, Int32, IMoniker)

Lê o máximo de caracteres do nome de exibição especificado que o ParseDisplayName(IBindCtx, IMoniker, String, Int32, IMoniker) entende e cria um moniker correspondente à parte lida.Reads as many characters of the specified display name as the ParseDisplayName(IBindCtx, IMoniker, String, Int32, IMoniker) understands and builds a moniker corresponding to the portion read.

Reduce(IBindCtx, Int32, IMoniker, IMoniker)

Retorna um moniker reduzido, que é outro moniker que se refere ao mesmo objeto do moniker atual, mas pode ser associado com eficiência igual ou maior.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.

RelativePathTo(IMoniker, IMoniker)

Fornece um moniker que, quando acrescentado ao moniker atual (ou uma com uma estrutura semelhante), gera o moniker especificado.Supplies a moniker that, when appended to the current moniker (or one with a similar structure), yields the specified moniker.

Save(IStream, Boolean)

Salva um objeto no fluxo especificado.Saves an object to the specified stream.

Aplica-se a