TcpProtocol.ListenerPort プロパティ
TCP プロトコルのリスナーのポート アドレスを取得します。値の設定も可能です。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ListenerPort As Integer
Get
Set
'使用
Dim instance As TcpProtocol
Dim value As Integer
value = instance.ListenerPort
instance.ListenerPort = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int ListenerPort { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int ListenerPort {
int get ();
void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ListenerPort : int with get, set
function get ListenerPort () : int
function set ListenerPort (value : int)
プロパティ値
型: System.Int32
リスナーのポート アドレスを示す Int32 値です。
使用例
関連項目
参照
Microsoft.SqlServer.Management.Smo 名前空間