Freigeben über


MethodData Constructor

Initializes a new instance of the MethodData class.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Sub New ( _
    site As IServiceProvider _
)
public MethodData(
    IServiceProvider site
)
public:
MethodData(
    IServiceProvider^ site
)
new : 
        site:IServiceProvider -> MethodData
public function MethodData(
    site : IServiceProvider
)

Parameters

  • site
    Type: 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.

.NET Framework Security

See Also

Reference

MethodData Class

Microsoft.VisualStudio.Package Namespace