MethodData Constructor
Initializes a new instance of the MethodData class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaração
Public Sub New ( _
site As IServiceProvider _
)
public MethodData(
IServiceProvider site
)
Parameters
- site
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.