共用方式為


TcpProtocol.IsDynamicPort 屬性

Gets the Boolean property that specifies whether the port used by the protocol is dynamic or static.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsDynamicPort As Boolean 
    Get
'用途
Dim instance As TcpProtocol 
Dim value As Boolean 

value = instance.IsDynamicPort
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsDynamicPort { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsDynamicPort {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsDynamicPort : bool
function get IsDynamicPort () : boolean

屬性值

型別:System.Boolean
A Boolean value that specifies whether the port is dynamic.If True, the port is dynamic.If False (default), the port is static.

範例

實作端點

請參閱

參考

TcpProtocol 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

網路通訊協定和 TDS 端點

CREATE ENDPOINT (Transact-SQL)