| VsServiceProviderExtensionsGetSolutionObject Method |
Note: This API is now obsolete.
Namespace: Tvl.VisualStudio.ShellAssembly: Tvl.VisualStudio.ShellServices.10 (in Tvl.VisualStudio.ShellServices.10.dll) Version: 2.0.0.0
Syntax [ObsoleteAttribute("Use GetSolution() instead.")]
public static IVsSolution GetSolutionObject(
this SVsServiceProvider serviceProvider
)
<ExtensionAttribute>
<ObsoleteAttribute("Use GetSolution() instead.")>
Public Shared Function GetSolutionObject (
serviceProvider As SVsServiceProvider
) As IVsSolution
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"Use GetSolution() instead.")]
static IVsSolution^ GetSolutionObject(
SVsServiceProvider^ serviceProvider
)
[<ObsoleteAttribute("Use GetSolution() instead.")>]
static member GetSolutionObject :
serviceProvider : SVsServiceProvider -> IVsSolution
Parameters
- serviceProvider
- Type: Microsoft.VisualStudio.ShellSVsServiceProvider
The service provider.
Return Value
Type:
IVsSolutionThe
IVsSolution service provided by the service provider, or
if the service provider was not able to provide an instance of the service.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SVsServiceProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also