BasicHttpBinding.TransferMode BasicHttpBinding.TransferMode BasicHttpBinding.TransferMode BasicHttpBinding.TransferMode Property

定义

获取或设置一个值,该值指示是通过缓冲处理还是流处理来发送消息。Gets or sets a value that indicates whether messages are sent buffered or streamed.

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

属性值

用于指示是通过缓冲处理还是流处理来发送消息的 TransferModeThe TransferMode that indicates whether messages are sent buffered or streamed.

示例

以下示例将 TransferMode 设置为StreamedThe following example sets TransferMode to Streamed.

BasicHttpBinding binding = new BasicHttpBinding();
binding.TransferMode = TransferMode.Streamed;

也可以在配置文件中设置此属性的值。The value of this property can also be set in the configuration file.

适用于