IVsImageService2::TryAssociateNameWithMoniker Method (String^, ImageMoniker)

Visual Studio 2015
 

Creates an association between an image name (from IVsImageService.Add and IVsImageService.Get) and an ImageMoniker (from IVsImageService.GetImage).

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime (in Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.dll)

bool TryAssociateNameWithMoniker(
	String^ imageName,
	ImageMoniker moniker
)

Parameters

imageName
Type: System::String^

The image name.

moniker
Type: Microsoft.VisualStudio.Imaging.Interop::ImageMoniker

The image moniker.

Return Value

Type: System::Boolean

True if the moniker was successfully associated with the name, false if some other moniker is already registered.

Return to top
Show: