ManagedInstance.ManagementState ManagedInstance.ManagementState ManagedInstance.ManagementState Property

정의

SQL Server 유틸리티 서비스에서 관리 되는 관련 하 여 SQL server 인스턴스의 현재 상태를 가져옵니다. Gets the current state of instance of SQL Server with regard to being managed by the SQL Server Utility service.

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.Required | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.ReadOnlyAfterCreation)]
public Microsoft.SqlServer.Management.Utility.ManagementState ManagementState { get; }
Public ReadOnly Property ManagementState As ManagementState
속성 값

A Microsoft.SqlServer.Management.Utility.ManagedState SQL Server 인스턴스의 관리 상태를 지정 하는 값입니다. A Microsoft.SqlServer.Management.Utility.ManagedState value that specifies the management state of the instance of SQL Server.

예제

VC #VC#

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

VBVB

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

PowerShellPowerShell

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

적용 대상