Aracılığıyla paylaş


WebOperationContext.OutgoingRequest Özellik

Tanım

Gönderilen isteğin Web isteği bağlamını alır.

public:
 property System::ServiceModel::Web::OutgoingWebRequestContext ^ OutgoingRequest { System::ServiceModel::Web::OutgoingWebRequestContext ^ get(); };
public System.ServiceModel.Web.OutgoingWebRequestContext OutgoingRequest { get; }
member this.OutgoingRequest : System.ServiceModel.Web.OutgoingWebRequestContext
Public ReadOnly Property OutgoingRequest As OutgoingWebRequestContext

Özellik Değeri

OutgoingWebRequestContext

Bir OutgoingWebRequestContext örnek.

Örnekler

Aşağıdaki kodda yöntemin, içerik türünün nasıl ayarlanacağı ve giden isteğe üst bilgi nasıl ekleneceği gösterilmektedir.

WebOperationContext.Current.OutgoingRequest.Headers.Add("Slug", "title");
WebOperationContext.Current.OutgoingRequest.Method = "GET";
WebOperationContext.Current.OutgoingRequest.ContentType = "application/octet-stream";
WebOperationContext.Current.OutgoingRequest.Headers.Add("Slug", "title")
WebOperationContext.Current.OutgoingRequest.Method = "GET"
WebOperationContext.Current.OutgoingRequest.ContentType = "application/octet-stream"

Şunlara uygulanır