次の方法で共有


Owner プロパティ

エンドポイントの所有者を取得します。値の設定も可能です。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Owner As String
    Get
    Set
'使用
Dim instance As Endpoint
Dim value As String

value = instance.Owner

instance.Owner = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string Owner { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ Owner {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Owner : string with get, set
function get Owner () : String
function set Owner (value : String)

プロパティ値

型: System. . :: . .String
エンドポイントの所有者を示す String 値です。

説明

Endpoint オブジェクトを作成するアカウントが、自動的にエンドポイントの所有者となります。エンドポイントを作成するには、CREATE ENDPOINT 権限が必要です。