Udostępnij za pośrednictwem


IVsImageService.Add(String, IVsUIObject) Method

Definition

Caution

Use IVsImageService2.AddCustomImage to add an image. If you need to add a name for the custom image, use IVsImageService2.TryAssociateNameWithMoniker.

Adds an icon with the specified name to the service.

public:
 void Add(System::String ^ Name, Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ pIconObject);
public:
 void Add(Platform::String ^ Name, Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ pIconObject);
void Add(std::wstring const & Name, Microsoft::VisualStudio::Shell::Interop::IVsUIObject const & pIconObject);
public void Add (string Name, Microsoft.VisualStudio.Shell.Interop.IVsUIObject pIconObject);
[System.Obsolete("Use IVsImageService2.AddCustomImage to add an image.  If you need to add a name for the custom image, use IVsImageService2.TryAssociateNameWithMoniker.")]
public void Add (string Name, Microsoft.VisualStudio.Shell.Interop.IVsUIObject pIconObject);
abstract member Add : string * Microsoft.VisualStudio.Shell.Interop.IVsUIObject -> unit
[<System.Obsolete("Use IVsImageService2.AddCustomImage to add an image.  If you need to add a name for the custom image, use IVsImageService2.TryAssociateNameWithMoniker.")>]
abstract member Add : string * Microsoft.VisualStudio.Shell.Interop.IVsUIObject -> unit
Public Sub Add (Name As String, pIconObject As IVsUIObject)

Parameters

Name
String

[in] Name of the icon.

pIconObject
IVsUIObject

[in] The icon object to add to the service.

Attributes

Applies to