共用方式為


InstalledInstances.GetInstance(ServiceContainer) Method

Definition

Gets the installed instances.

public:
 static Microsoft::SqlServer::Configuration::InstalledInstances ^ GetInstance(Microsoft::SqlServer::Chainer::Infrastructure::ServiceContainer ^ context);
public static Microsoft.SqlServer.Configuration.InstalledInstances GetInstance (Microsoft.SqlServer.Chainer.Infrastructure.ServiceContainer context);
static member GetInstance : Microsoft.SqlServer.Chainer.Infrastructure.ServiceContainer -> Microsoft.SqlServer.Configuration.InstalledInstances
Public Shared Function GetInstance (context As ServiceContainer) As InstalledInstances

Parameters

context
Microsoft.SqlServer.Chainer.Infrastructure.ServiceContainer

The context.

Returns

The installed instances.

Applies to