IVsImageService2.TryAssociateNameWithMoniker(String, ImageMoniker) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an association between an image name (from IVsImageService.Add and IVsImageService.Get) and an ImageMoniker (from IVsImageService.GetImage).
public:
bool TryAssociateNameWithMoniker(System::String ^ imageName, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker moniker);
bool TryAssociateNameWithMoniker(std::wstring const & imageName, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker moniker);
public bool TryAssociateNameWithMoniker (string imageName, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker moniker);
abstract member TryAssociateNameWithMoniker : string * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker -> bool
Public Function TryAssociateNameWithMoniker (imageName As String, moniker As ImageMoniker) As Boolean
Parameters
- imageName
- String
The image name.
- moniker
- ImageMoniker
The image moniker.
Returns
True if the moniker was successfully associated with the name, false if some other moniker is already registered.