Propriedade do RDL ManagedInstance.ManagementState

Gets the current state of instance of SQL Server with regard to being managed by the SQL Server Utility service.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (em Microsoft.SqlServer.Management.Utility.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Required Or SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property ManagementState As ManagementState 
    Get 
    Friend Set
'Uso
Dim instance As ManagedInstance 
Dim value As ManagementState 

value = instance.ManagementState
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.ReadOnlyAfterCreation)]
public ManagementState ManagementState { get; internal set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Required|SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property ManagementState ManagementState {
    ManagementState get ();
    internal: void set (ManagementState value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.ReadOnlyAfterCreation)>]
member ManagementState : ManagementState with get, internal set
function get ManagementState () : ManagementState 
internal function set ManagementState (value : ManagementState)

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Utility.ManagementState
A ManagedState value that specifies the management state of the instance of SQL Server.

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 

Consulte também

Referência

ManagedInstance Classe

Namespace Microsoft.SqlServer.Management.Utility