Compartilhar via


ManagedInstance.ManagementState Propriedade

Definição

Obtém o estado atual da instância de SQL Server em relação ao gerenciamento pelo serviço utilitário SQL Server.

public:
 property Microsoft::SqlServer::Management::Utility::ManagementState ManagementState { Microsoft::SqlServer::Management::Utility::ManagementState get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.ReadOnlyAfterCreation | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Required)]
public Microsoft.SqlServer.Management.Utility.ManagementState ManagementState { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.ReadOnlyAfterCreation | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Required)>]
member this.ManagementState : Microsoft.SqlServer.Management.Utility.ManagementState
Public ReadOnly Property ManagementState As ManagementState

Valor da propriedade

Um Microsoft.SqlServer.Management.Utility.ManagedState valor que especifica o estado de gerenciamento da instância do SQL Server.

Atributos

Exemplos

VC #

ManagedInstance managedInstance;  
managedInstance = new ManagedInstance ();  
System.Console.WriteLine(managedInstance.ManagmentState);  

VB

Dim managedInstance As ManagedInstance  
managedInstance = New ManagedInstance ()   
System.Console.WriteLine(managedInstance.ManagementState)  

PowerShell

$managedInstance = New-Object Microsoft.SqlServer.Management.Utility.ManagedInstance  
Write-Host $managedInstance.ManagementState   

Aplica-se a