ControlSite.ApplyServices Method (Control, IServiceProvider)
Retrieves the service object of the specified type.
Namespace: Microsoft.SqlServer.Management.Controls
Assembly: Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)
Syntax
'Declaration
Public Shared Sub ApplyServices ( _
control As Control, _
serviceProvider As IServiceProvider _
)
'Usage
Dim control As Control
Dim serviceProvider As IServiceProvider
ControlSite.ApplyServices(control, serviceProvider)
public static void ApplyServices(
Control control,
IServiceProvider serviceProvider
)
public:
static void ApplyServices(
Control^ control,
IServiceProvider^ serviceProvider
)
static member ApplyServices :
control:Control *
serviceProvider:IServiceProvider -> unit
public static function ApplyServices(
control : Control,
serviceProvider : IServiceProvider
)
Parameters
- control
Type: System.Windows.Forms.Control
Root control that retrieves the ISite interface.
- serviceProvider
Type: System.IServiceProvider
A service object of type serviceType.