ServiceProvider Class
Provides methods to get the service object of a specified type.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.ServiceProvider
Namespace: Microsoft.SqlServer.Management
Assembly: Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)
Syntax
'Declaration
Public NotInheritable Class ServiceProvider
'Usage
public static class ServiceProvider
public ref class ServiceProvider abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ServiceProvider = class end
public final class ServiceProvider
Methods
Name | Description | |
---|---|---|
GetService<T>(IServiceProvider) | Retrieves the service object of the specified type. | |
GetService<T>(IServiceProvider, Boolean) | Retrieves the service object of the specified type, and throws an exception if the service is not found. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.