NetPeerTcpBinding 類別

定義

警告

PeerChannel feature is obsolete and will be removed in the future.

為對等網路應用程式提供安全繫結。

public ref class NetPeerTcpBinding : System::ServiceModel::Channels::Binding, System::ServiceModel::Channels::IBindingRuntimePreferences
public class NetPeerTcpBinding : System.ServiceModel.Channels.Binding, System.ServiceModel.Channels.IBindingRuntimePreferences
[System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)]
public class NetPeerTcpBinding : System.ServiceModel.Channels.Binding, System.ServiceModel.Channels.IBindingRuntimePreferences
type NetPeerTcpBinding = class
    inherit Binding
    interface IBindingRuntimePreferences
[<System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)>]
type NetPeerTcpBinding = class
    inherit Binding
    interface IBindingRuntimePreferences
Public Class NetPeerTcpBinding
Inherits Binding
Implements IBindingRuntimePreferences
繼承
NetPeerTcpBinding
屬性
實作

備註

NetPeerTcpBinding 繫結支援建立可使用 TCP 層級對等網狀基礎結構的對等網路應用程式。

每個 PeerNode 執行個體都可以裝載多個以這個繫結型別定義的對等通道。 使用這個型別已設定的執行個體所產生的通道處理站,可用於產生對等通道。 對等通道處理站可以產生僅限輸入 (實作 IInputChannel)、僅限輸出 (實作 IOutputChannel) 和雙工 (實作 IDuplexChannel) 的對等通道。

這是 Windows Communication Framework (WCF) 提供的其中一個標準繫結。 它可用於命令式程式碼,或在應用程式的對應 XML 組態檔中指定。 建議的程序為使用組態值來定義繫結,且不使用程式碼的方法,除了在初始化服務時必須設定組態值的特定進階情況中。

建構函式

NetPeerTcpBinding()
已淘汰.

初始化 NetPeerTcpBinding 類別預設的新執行個體。

NetPeerTcpBinding(String)
已淘汰.

使用指定的組態名稱,初始化 NetPeerTcpBinding 類別的新執行個體。

屬性

CloseTimeout
已淘汰.

取得或設定針對連線所提供的時間間隔 (此連線要在傳輸引發例外狀況之前關閉)。

(繼承來源 Binding)
EnvelopeVersion
已淘汰.

取得與這個繫結搭配使用的 SOAP 版本。

IsPnrpAvailable
已淘汰.

取得值,指出是否在電腦上安裝並提供 PNRP 服務。

ListenIPAddress
已淘汰.

取得或設定本機對等節點用於接聽的 IP 位址。

MaxBufferPoolSize
已淘汰.

取得或設定對等 TCP 緩衝區所使用之記憶體集區大小上限 (位元組)。

MaxReceivedMessageSize
已淘汰.

取得或設定由此繫結所建立的對等通道處理之 TCP 訊息大小上限 (位元組)。

MessageVersion
已淘汰.

取得用戶端所使用的訊息版本及使用繫結所設定的服務。

(繼承來源 Binding)
Name
已淘汰.

取得或設定繫結的名稱。

(繼承來源 Binding)
Namespace
已淘汰.

取得或設定繫結的 XML 命名空間。

(繼承來源 Binding)
OpenTimeout
已淘汰.

取得或設定針對連線所提供的時間間隔 (此連線要在傳輸引發例外狀況之前開啟)。

(繼承來源 Binding)
Port
已淘汰.

取得或設定要繫結的網路連接埠。

ReaderQuotas
已淘汰.

取得或設定與這個繫結關聯的 XmlDictionaryReaderQuotas

ReceiveTimeout
已淘汰.

取得或設定連線中斷之前,可以維持非作用狀態的時間間隔 (在此期間未接收應用程式訊息)。

(繼承來源 Binding)
Resolver
已淘汰.

取得這個繫結執行個體所使用的 PeerResolver,以將對等網狀結構 ID 解析為對等網狀結構內節點的端點 IP 位址。

Scheme
已淘汰.

取得 URI 配置,此配置用於與這個繫結相關聯的傳輸通訊協定。

Security
已淘汰.

取得或設定要在此繫結所建立對等通道上設定的安全性。

SendTimeout
已淘汰.

取得或設定針對寫入作業所提供的時間間隔 (此作業要在傳輸引發例外狀況之前完成)。

(繼承來源 Binding)

方法

BuildChannelFactory<TChannel>(BindingParameterCollection)
已淘汰.

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足繫結參數集合所指定的功能。

(繼承來源 Binding)
BuildChannelFactory<TChannel>(Object[])
已淘汰.

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足物件陣列所指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(BindingParameterCollection)
已淘汰.

在服務上建置通道接聽程式,此接聽程式會接受指定的通道型別,並滿足繫結參數集合所指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Object[])
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, BindingParameterCollection)
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, Object[])
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, String, ListenUriMode, BindingParameterCollection)
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, String, ListenUriMode, Object[])
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, String, Object[])
已淘汰.

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。

(繼承來源 Binding)
CanBuildChannelFactory<TChannel>(BindingParameterCollection)
已淘汰.

傳回值,這個值指出目前的繫結是否可以在用戶端上建置滿足指定之繫結參數集合的通道處理站堆疊。

(繼承來源 Binding)
CanBuildChannelFactory<TChannel>(Object[])
已淘汰.

傳回值,這個值指出目前的繫結程序是否可以在用戶端上建置滿足物件陣列指定之需求的通道處理站堆疊。

(繼承來源 Binding)
CanBuildChannelListener<TChannel>(BindingParameterCollection)
已淘汰.

傳回值,這個值指出目前的繫結是否可以在服務上建置滿足指定之繫結參數集合的通道接聽程式堆疊。

(繼承來源 Binding)
CanBuildChannelListener<TChannel>(Object[])
已淘汰.

傳回值,這個值指出目前的繫結是否可以在服務上建置滿足物件陣列中指定之準則的通道接聽程式堆疊。

(繼承來源 Binding)
CreateBindingElements()
已淘汰.

建立含有繫結之繫結項目的集合。

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetProperty<T>(BindingParameterCollection)
已淘汰.

從繫結堆疊的適當層次中,傳回要求的型別物件 (如果有)。

(繼承來源 Binding)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ShouldSerializeName()
已淘汰.

傳回繫結的名稱是否應該序列化。

(繼承來源 Binding)
ShouldSerializeNamespace()
已淘汰.

傳回繫結的命名空間是否應該序列化。

(繼承來源 Binding)
ShouldSerializeReaderQuotas()
已淘汰.

取得值,這個值會指定繫結的讀取器配額資料是否應該序列化。

ShouldSerializeSecurity()
已淘汰.

取得值,這個值會指定繫結的安全性資訊是否應該序列化。

ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IBindingRuntimePreferences.ReceiveSynchronously
已淘汰.

取得值,指出是否要以同步或非同步方式處理經過這個繫結所建立之對等通道的傳入要求。

適用於