Condividi tramite


MethodData Constructor

Initializes a new instance of the MethodData class.

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

Syntax

'Dichiarazione
Public Sub New ( _
    site As IServiceProvider _
)
'Utilizzo
Dim site As IServiceProvider

Dim instance As New MethodData(site)
public MethodData(
    IServiceProvider site
)
public:
MethodData(
    IServiceProvider^ site
)
new : 
        site:IServiceProvider -> MethodData
public function MethodData(
    site : IServiceProvider
)

Parameters

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

MethodData Members

Microsoft.VisualStudio.Package Namespace