NetTcpBinding.TransferMode 属性

定义

获取或设置一个值,该值指示使用此绑定配置的服务是使用消息传输的流处理模式、缓冲模式还是同时使用这两种模式。Gets or sets a value that indicates whether the service configured with the binding uses streamed or buffered (or both) modes of message transfer.

public:
 property System::ServiceModel::TransferMode TransferMode { System::ServiceModel::TransferMode get(); void set(System::ServiceModel::TransferMode value); };
public System.ServiceModel.TransferMode TransferMode { get; set; }
member this.TransferMode : System.ServiceModel.TransferMode with get, set
Public Property TransferMode As TransferMode

属性值

TransferMode 值,指示使用此绑定配置的服务是使用消息传输的流处理模式、缓冲模式还是同时使用这两种模式。The TransferMode value that indicates whether the service configured with the binding uses streamed or buffered (or both) modes of message transfer.

示例

此示例演示如何获取 TransferMode 值。This example shows how to get the TransferMode value.

TransferMode transferMode = binding.TransferMode;

适用于