ManagedInstance.Name プロパティ

マネージ インスタンスの名前を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Utility
アセンブリ:  Microsoft.SqlServer.Management.Utility (Microsoft.SqlServer.Management.Utility.dll)

構文

'宣言
<SfcKeyAttribute()> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Required Or SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property Name As String 
    Get 
    Protected Set
'使用
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)

プロパティ値

型: System.String
マネージ インスタンスの名前を示す String 値です。

使用例

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

関連項目

参照

ManagedInstance クラス

Microsoft.SqlServer.Management.Utility 名前空間