ServiceProvider Class

 

Provides methods to get the service object of a specified type.

Namespace:   Microsoft.SqlServer.Management
Assembly:  Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)

System::Object
  Microsoft.SqlServer.Management::ServiceProvider

public ref class ServiceProvider abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetService<T>(IServiceProvider^)

Retrieves the service object of the specified type.

System_CAPS_pubmethodSystem_CAPS_staticGetService<T>(IServiceProvider^, Boolean)

Retrieves the service object of the specified type, and throws an exception if the service is not found.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: