NamedPipeTransportBindingElement 類別

定義

表示具名管道傳輸的繫結元素。Represents the binding element for the named pipe transport.

public ref class NamedPipeTransportBindingElement : System::ServiceModel::Channels::ConnectionOrientedTransportBindingElement
public class NamedPipeTransportBindingElement : System.ServiceModel.Channels.ConnectionOrientedTransportBindingElement
type NamedPipeTransportBindingElement = class
    inherit ConnectionOrientedTransportBindingElement
Public Class NamedPipeTransportBindingElement
Inherits ConnectionOrientedTransportBindingElement
繼承

範例

這個範例會說明如何使用這個類別:This example shows how to use this class:

NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();

NamedPipeConnectionPoolSettings connectionPoolSettings =
    bElement.ConnectionPoolSettings;
Dim bElement As New NamedPipeTransportBindingElement()

Dim connectionPoolSettings As NamedPipeConnectionPoolSettings = bElement.ConnectionPoolSettings

備註

此傳輸net.pipe使用格式為 "://hostname / path" 的 uri。This transport uses URIs of the form "net.pipe://hostname/path". 其他 URI 元件是選擇性的。Other URI components are optional.

NamedPipeTransportBindingElement 類別是一個起點,用來建立實作具名管道傳輸通訊協定的自訂繫結。The NamedPipeTransportBindingElement class is the starting point for creating a custom binding that implements the named pipes transport protocol. 此傳輸會用於電腦上的 WCF 通訊。This transport is used for on-machine WCF communication.

WCF 服務模型會使用這個類別來建立可執行IChannelFactoryIChannelListener介面的 factory 物件。The WCF service model uses this class to create factory objects that implement the IChannelFactory and IChannelListener interfaces. 然後,這些處理站物件會建立並接受使用具名管道通訊協定傳送 SOAP 訊息的通道。These factory objects then create and accept the channels that transmit SOAP messages using the named pipes protocol.

您可以藉由設定這個類別的屬性來設定其所建立的處理站,例如:ConnectionPoolSettingsYou configure the factories that this class creates by setting its properties, such as: ConnectionPoolSettings.

您也可以設定基底類別 ConnectionOrientedTransportBindingElement 的屬性,例如:MaxBufferSizeTransferModeConnectionBufferSizeYou can also set properties on the base class, ConnectionOrientedTransportBindingElement, such as: MaxBufferSize, TransferMode, and ConnectionBufferSize. 如需完整的屬性清單,請參閱 ConnectionOrientedTransportBindingElementFor a complete list of properties, see ConnectionOrientedTransportBindingElement.

最後,您可以設定 ConnectionOrientedTransportBindingElement 的基底類別 (即 TransportBindingElement) 屬性,例如 MaxBufferPoolSizeFinally, you can set properties on the base class of ConnectionOrientedTransportBindingElement, which is TransportBindingElement, such as MaxBufferPoolSize. 如需完整的屬性清單,請參閱 TransportBindingElementFor a complete list of properties, see TransportBindingElement.

建構函式

NamedPipeTransportBindingElement()

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

NamedPipeTransportBindingElement(NamedPipeTransportBindingElement)

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

屬性

AllowedSecurityIdentifiers

取得允許的 SecurityIdentifier 執行個體集合。Gets a collection of allowed SecurityIdentifier instances.

ChannelInitializationTimeout

取得或設定 TimeSpan,決定通道在中斷連接之前,可以處於初始化狀態中的最長時間。Gets or sets a TimeSpan that determines the maximum time a channel can be in the initialization status before being disconnected.

(繼承來源 ConnectionOrientedTransportBindingElement)
ConnectionBufferSize

取得或設定用來在用戶端或服務的網路上,傳輸已序列化訊息區塊 (Chunk) 的緩衝區大小。Gets or sets the size of the buffer used to transmit a chunk of the serialized message on the wire from the client or service.

(繼承來源 ConnectionOrientedTransportBindingElement)
ConnectionPoolSettings

取得連線集區設定的集合。Gets a collection of connection pool settings.

HostNameComparisonMode

取得或設定值,這個值會指出在比對 URI 時主機名稱是否會用來取用服務。Gets or sets a value that indicates whether the hostname is used to reach the service when matching on the URI.

(繼承來源 ConnectionOrientedTransportBindingElement)
ManualAddressing

取得或設定值,這個值會指出是否需要訊息的手動定址。Gets or sets a value that indicates whether manual addressing of the message is required.

(繼承來源 TransportBindingElement)
MaxBufferPoolSize

取得或設定傳輸所使用之任何緩衝區集區的大小上限 (以位元組為單位)。Gets or sets the maximum size, in bytes, of any buffer pools used by the transport.

(繼承來源 TransportBindingElement)
MaxBufferSize

取得或設定要使用之緩衝區的大小上限。Gets or sets the maximum size of the buffer to use. 對於已進行資料流處理的訊息,這個值至少應為訊息標頭的最大可能大小 (可在緩衝模式中讀取)。For streamed messages, this value should be at least the maximum possible size of the message headers, which are read in buffered mode.

(繼承來源 ConnectionOrientedTransportBindingElement)
MaxOutputDelay

取得或設定訊息區塊或完整訊息在送出之前,可以在記憶體中保持緩衝的最大時間間隔。Gets or sets the maximum interval of time that a chunk of a message or a full message can remain buffered in memory before being sent out.

(繼承來源 ConnectionOrientedTransportBindingElement)
MaxPendingAccepts

取得或設定服務可使其等待接聽程式以處理服務之連入連線的通道最大數目。Gets or sets the maximum number of channels a service can have waiting on a listener for processing incoming connections to the service.

(繼承來源 ConnectionOrientedTransportBindingElement)
MaxPendingConnections

取得或設定服務上等待分派之連線的數目上限。Gets or sets the maximum number of connections awaiting dispatch on the service.

(繼承來源 ConnectionOrientedTransportBindingElement)
MaxReceivedMessageSize

取得或設定可接收之可允許的訊息大小上限 (以位元組為單位)。Gets or sets the maximum allowable message size, in bytes, that can be received.

(繼承來源 TransportBindingElement)
PipeSettings

取得具名管道傳輸繫結項目的管道設定。Gets the pipe settings for the named pipe transport binding element.

Scheme

傳回用於傳輸的 URI 配置。Returns the URI scheme for the transport.

TransferMode

取得或設定值,這個值表示訊息是否使用連線導向傳輸進行緩衝或資料流處理。Gets or sets a value that indicates whether the messages are buffered or streamed with the connection-oriented transport.

(繼承來源 ConnectionOrientedTransportBindingElement)

方法

BuildChannelFactory<TChannel>(BindingContext)

建立指定型別的通道處理站,可用來建立通道。Creates a channel factory of the specified type that can be used to create channels.

BuildChannelListener<TChannel>(BindingContext)

建立指定型別的通道接聽程式。Creates a channel listener of the specified type.

CanBuildChannelFactory<TChannel>(BindingContext)

判斷是否可以建置指定之型別的通道處理站。Determines whether a channel factory of the specified type can be built.

(繼承來源 ConnectionOrientedTransportBindingElement)
CanBuildChannelListener<TChannel>(BindingContext)

判斷是否可以建置指定之型別的通道接聽項。Determines whether a channel listener of the specified type can be built.

(繼承來源 ConnectionOrientedTransportBindingElement)
Clone()

建立目前繫結項目的複本。Creates a copy of the current binding element.

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

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

BindingContext中取得指定的物件。Gets a specified object from the BindingContext.

GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ShouldSerializeMaxPendingAccepts()

指出連線導向的傳輸繫結項目是否應序列化暫止接受的上限。Indicates whether the connection oriented transport binding element should serialize maximum pending accepts.

(繼承來源 ConnectionOrientedTransportBindingElement)
ShouldSerializeMaxPendingConnections()

指出連線導向的傳輸繫結項目是否應序列化暫止連線的上限。Indicates whether the connection oriented transport binding element should serialize maximum pending connections.

(繼承來源 ConnectionOrientedTransportBindingElement)
ToString()

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

(繼承來源 Object)

明確介面實作

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

匯出關於繫結的自訂原則判斷提示。Exports a custom policy assertion about bindings.

(繼承來源 ConnectionOrientedTransportBindingElement)
IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext)

將自訂的 Web 服務描述語言 (WSDL) 項目寫入為合約產生的 WSDL。Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for a contract.

(繼承來源 ConnectionOrientedTransportBindingElement)
IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

將自訂的 Web 服務描述語言 (WSDL) 項目寫入為端點產生的 WSDL。Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for an endpoint.

(繼承來源 ConnectionOrientedTransportBindingElement)

適用於