This documentation is archived and is not being maintained.

UCOMIMoniker.ComposeWith Method

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

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

void ComposeWith (
	UCOMIMoniker pmkRight,
	bool fOnlyIfNotGeneric,
	out UCOMIMoniker ppmkComposite
void ComposeWith (
	UCOMIMoniker pmkRight, 
	boolean fOnlyIfNotGeneric, 
	/** @attribute OutAttribute() */ /** @ref */ UCOMIMoniker ppmkComposite
Not applicable.



A reference to the IMoniker interface on the moniker to compose onto the end of this moniker.


If true, the caller requires a nongeneric composition, so the operation proceeds only if pmkRight is a moniker class that this moniker can compose with in some way other than forming a generic composite. If false, the method can create a generic composite if necessary.


On successful return, a reference to the resulting composite moniker.

For more information about IMoniker::ComposeWith, see the MSDN Library.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0