次の方法で共有


ConnectTimeout プロパティ

リンク サーバーとの接続の確立がタイムアウトするまで待機する秒数を取得します。値の設定も可能です。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ConnectTimeout As Integer
    Get
    Set
'使用
Dim instance As LinkedServer
Dim value As Integer

value = instance.ConnectTimeout

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

プロパティ値

型: System. . :: . .Int32
ローカル サーバーのリモート サーバーへの接続の試行がタイムアウトするまでの時間 (秒単位) を示す Int32 値です。