次の方法で共有


Server プロパティ

ジョブ ステップが実行されるサーバーの名前を取得します。値の設定も可能です。

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

構文

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

value = instance.Server

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

プロパティ値

型: System. . :: . .String
サーバー名を示す String 値です。