MethodData(IServiceProvider) Constructor

Definition

Initializes a new instance of the MethodData class.

public:
 MethodData(IServiceProvider ^ site);
public MethodData (IServiceProvider site);
new Microsoft.VisualStudio.Package.MethodData : IServiceProvider -> Microsoft.VisualStudio.Package.MethodData
Public Sub New (site As IServiceProvider)

Parameters

site
IServiceProvider

[in] An IServiceProvider object that is to be used as the service provider.

Remarks

If you derive a class from this class, you must call the base class constructor.

This constructor caches the service provider and obtains an instance of a Package object from the service provider (typically the VSPackage that implements the language service). The constructor then calls the CreateInstance method on the Package object to instantiate an IVsMethodTipWindow interface. Finally, if the IVsMethodTipWindow object is successfully created, the constructor calls the SetMethodData method on the IVsMethodTipWindow object, passing in this MethodData object that is being constructed.

Applies to