语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ClientPipeline.Send Method

Definition

Overloads

Name Description
Send(PipelineMessage)

Send the provided PipelineMessage.

Send(PipelineMessage, CancellationToken)

Send the provided PipelineMessage using the specified cancellation token.

Send(PipelineMessage)

Source:
ClientPipeline.cs
Source:
ClientPipeline.cs

Send the provided PipelineMessage.

public void Send(System.ClientModel.Primitives.PipelineMessage message);
member this.Send : System.ClientModel.Primitives.PipelineMessage -> unit
Public Sub Send (message As PipelineMessage)

Parameters

message
PipelineMessage

The PipelineMessage to send.

Exceptions

Thrown if an error other than the service responding with an error response occurred while sending the HTTP request.

Remarks

All necessary values on Request should be set prior to calling Send(PipelineMessage). After the method returns, Response will be populated with the details of the service response.

Applies to

Send(PipelineMessage, CancellationToken)

Source:
ClientPipeline.cs

Send the provided PipelineMessage using the specified cancellation token.

public void Send(System.ClientModel.Primitives.PipelineMessage message, System.Threading.CancellationToken cancellationToken);
member this.Send : System.ClientModel.Primitives.PipelineMessage * System.Threading.CancellationToken -> unit
Public Sub Send (message As PipelineMessage, cancellationToken As CancellationToken)

Parameters

message
PipelineMessage

The PipelineMessage to send.

cancellationToken
CancellationToken

The CancellationToken to use instead of the message's current cancellation token.

Exceptions

Thrown if an error other than the service responding with an error response occurred while sending the HTTP request.

Remarks

All necessary values on Request should be set prior to calling this method. After the method returns, Response will be populated with the details of the service response. The supplied token replaces CancellationToken, including when it is None. It is not combined with the previous token. Other options already applied to the message are preserved, and the original RequestOptions instance is not modified.

Applies to