Partilhar via


Propriedade do RDL ManagedInstance.Name

Gets or sets the name of the managed instance.

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

Sintaxe

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

value = instance.Name

instance.Name = value
[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.ReadOnlyAfterCreation)]
public string Name { get; protected set; }
[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Required|SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property String^ Name {
    String^ get ();
    protected: void set (String^ value);
}
[<SfcKeyAttribute()>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.ReadOnlyAfterCreation)>]
member Name : string with get, set
function get Name () : String 
protected function set Name (value : String)

Valor da propriedade

Tipo: System.String
A String value that specifies the name of the managed instance.

Exemplos

VC#

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

VB

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

PowerShell

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

Write-Host $managedInstance.Name

Consulte também

Referência

ManagedInstance Classe

Namespace Microsoft.SqlServer.Management.Utility