NetPeerTcpBinding 類別

定義

警告

此 API 現已淘汰。

為對等網路應用程式提供安全繫結。Provides a secure binding for peer-to-peer network applications.

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
Public Class NetPeerTcpBinding
Inherits Binding
Implements IBindingRuntimePreferences
繼承
NetPeerTcpBinding
屬性
實作

備註

NetPeerTcpBinding 繫結支援建立可使用 TCP 層級對等網狀基礎結構的對等網路應用程式。The NetPeerTcpBinding binding provides support for the creation of peer networking applications that use a TCP-level peer-to-peer mesh infrastructure.

每個 PeerNode 執行個體都可以裝載多個以這個繫結型別定義的對等通道。Each PeerNode instance can host multiple peer channels defined with this binding type. 使用這個型別已設定的執行個體所產生的通道處理站,可用於產生對等通道。Channel factories produced using a configured instance of this type can be used to generate peer channels. 對等通道處理站可以產生僅限輸入 (實作 IInputChannel)、僅限輸出 (實作 IOutputChannel) 和雙工 (實作 IDuplexChannel) 的對等通道。A peer channel factory can produce peer channels that are input-only (implements IInputChannel), output-only (implements IOutputChannel), and duplex (implements IDuplexChannel).

這是 Windows Communication Framework (WCF) 提供的其中一個標準繫結。This is one of the standard bindings provided by the Windows Communication Framework (WCF). 它可用於命令式程式碼,或在應用程式的對應 XML 組態檔中指定。It can be used in imperative code or specified in the corresponding XML configuration file for the application. 建議的程序為使用組態值來定義繫結,且不使用程式碼的方法,除了在初始化服務時必須設定組態值的特定進階情況中。The recommended procedure is to define the binding using configuration values and not to use a code-based approach, except in certain advanced scenarios where configuration values must be set as a service is initialized.

建構函式

NetPeerTcpBinding()

初始化 NetPeerTcpBinding 類別的新預設執行個體。Initializes a new default instance of the NetPeerTcpBinding class.

NetPeerTcpBinding(String)

使用指定的組態名稱,初始化 NetPeerTcpBinding 類別的新執行個體。Initializes a new instance of the NetPeerTcpBinding class with a specified configuration name.

屬性

CloseTimeout

取得或設定針對連線所提供的時間間隔 (此連線要在傳輸引發例外狀況之前關閉)。Gets or sets the interval of time provided for a connection to close before the transport raises an exception.

(繼承來源 Binding)
EnvelopeVersion

取得與這個繫結搭配使用的 SOAP 版本。Gets the SOAP version used with this binding.

IsPnrpAvailable

取得值,指出是否在電腦上安裝並提供 PNRP 服務。Gets a value that indicates whether the PNRP service is installed and available on the computer.

ListenIPAddress

取得或設定本機對等節點用於接聽的 IP 位址。Gets or sets the IP address used for listening by the local peer node.

MaxBufferPoolSize

取得或設定對等 TCP 緩衝區所使用之記憶體集區大小上限 (位元組)。Gets or sets the maximum size, in bytes, of the memory pool used for the peer TCP buffer.

MaxReceivedMessageSize

取得或設定由此繫結所建立的對等通道處理之 TCP 訊息大小上限 (位元組)。Gets or sets the maximum size, in bytes, of TCP messages handled by peer channels created by this binding.

MessageVersion

取得用戶端所使用的訊息版本及使用繫結所設定的服務。Gets the message version used by clients and services configured with the binding.

(繼承來源 Binding)
Name

取得或設定繫結的名稱。Gets or sets the name of the binding.

(繼承來源 Binding)
Namespace

取得或設定繫結的 XML 命名空間。Gets or sets the XML namespace of the binding.

(繼承來源 Binding)
OpenTimeout

取得或設定針對連線所提供的時間間隔 (此連線要在傳輸引發例外狀況之前開啟)。Gets or sets the interval of time provided for a connection to open before the transport raises an exception.

(繼承來源 Binding)
Port

取得或設定要繫結的網路連接埠。Gets or sets the network port on which to bind.

ReaderQuotas

取得或設定與這個繫結關聯的 XmlDictionaryReaderQuotasGets or sets the XmlDictionaryReaderQuotas that is associated with this binding.

ReceiveTimeout

取得或設定連線中斷之前,可以維持非作用狀態的時間間隔 (在此期間未接收應用程式訊息)。Gets or sets the interval of time that a connection can remain inactive, during which no application messages are received, before it is dropped.

(繼承來源 Binding)
Resolver

取得這個繫結執行個體所使用的 PeerResolver,以將對等網狀結構 ID 解析為對等網狀結構內節點的端點 IP 位址。Gets the PeerResolver used by this binding instance to resolve a peer mesh ID to the endpoint IP addresses of nodes within the peer mesh.

Scheme

取得 URI 配置,此配置用於與這個繫結相關聯的傳輸通訊協定。Gets the URI scheme used for the transport protocol associated with this binding.

Security

取得或設定要在此繫結所建立對等通道上設定的安全性。Gets or sets the security to set on peer channels created by this binding.

SendTimeout

取得或設定針對寫入作業所提供的時間間隔 (此作業要在傳輸引發例外狀況之前完成)。Gets or sets the interval of time provided for a write operation to complete before the transport raises an exception.

(繼承來源 Binding)

方法

BuildChannelFactory<TChannel>(BindingParameterCollection)

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足繫結參數集合所指定的功能。Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by a collection of binding parameters.

(繼承來源 Binding)
BuildChannelFactory<TChannel>(Object[])

在用戶端上建置通道處理站堆疊,此堆疊會建立指定的通道型別,並滿足物件陣列所指定的功能。Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by an object array.

(繼承來源 Binding)
BuildChannelListener<TChannel>(BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式會接受指定的通道型別,並滿足繫結參數集合所指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified by a collection of binding parameters.

(繼承來源 Binding)
BuildChannelListener<TChannel>(Object[])

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

(繼承來源 Binding)
BuildChannelListener<TChannel>(Uri, String, BindingParameterCollection)

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

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

在服務上建置通道接聽程式,此接聽程式可接受指定的通道型別並滿足指定的功能。Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified.

(繼承來源 Binding)
CanBuildChannelFactory<TChannel>(BindingParameterCollection)

傳回值,這個值指出目前的繫結是否可以在用戶端上建置滿足指定之繫結參數集合的通道處理站堆疊。Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies the collection of binding parameters specified.

(繼承來源 Binding)
CanBuildChannelFactory<TChannel>(Object[])

傳回值,這個值指出目前的繫結是否可以在用戶端上建置滿足物件陣列指定之需求的通道處理站堆疊。Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies the requirements specified by an object array.

(繼承來源 Binding)
CanBuildChannelListener<TChannel>(BindingParameterCollection)

傳回值,這個值指出目前的繫結是否可以在服務上建置滿足指定之繫結參數集合的通道接聽程式堆疊。Returns a value that indicates whether the current binding can build a channel listener stack on the service that satisfies the collection of binding parameters specified.

(繼承來源 Binding)
CanBuildChannelListener<TChannel>(Object[])

傳回值,這個值指出目前的繫結是否可以在服務上建置滿足物件陣列中指定之準則的通道接聽程式堆疊。Returns a value that indicates whether the current binding can build a channel listener stack on the service that satisfies the criteria specified in an array of objects.

(繼承來源 Binding)
CreateBindingElements()

建立含有繫結之繫結項目的集合。Creates a collection with the binding elements for the binding.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetProperty<T>(BindingParameterCollection)

從繫結堆疊的適當層次中,傳回要求的型別物件 (如果有)。Returns a typed object requested, if present, from the appropriate layer in the binding stack.

(繼承來源 Binding)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ShouldSerializeName()

傳回繫結的名稱是否應該序列化。Returns whether the name of the binding should be serialized.

(繼承來源 Binding)
ShouldSerializeNamespace()

傳回繫結的命名空間是否應該序列化。Returns whether the namespace of the binding should be serialized.

(繼承來源 Binding)
ShouldSerializeReaderQuotas()

取得值,這個值會指定繫結的讀取器配額資料是否應該序列化。Gets a value that specifies whether reader quota data for the binding should be serialized.

ShouldSerializeSecurity()

取得值,這個值會指定繫結的安全性資訊是否應該序列化。Gets a value that specifies whether security information for the binding should be serialized.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IBindingRuntimePreferences.ReceiveSynchronously

取得值,指出是否要以同步或非同步方式處理經過這個繫結所建立之對等通道的傳入要求。Gets a value that indicates whether incoming requests over peer channels created by this binding are handled synchronously or asynchronously.

適用於