Redigera

Dela via


WebHttpDispatchOperationSelector.SelectOperation Method

Definition

Selects the service operation to call.

Overloads

SelectOperation(Message)

Selects the service operation to call.

SelectOperation(Message, Boolean)

Selects the service operation to call.

SelectOperation(Message)

Selects the service operation to call.

public:
 virtual System::String ^ SelectOperation(System::ServiceModel::Channels::Message ^ % message);
public string SelectOperation (ref System.ServiceModel.Channels.Message message);
abstract member SelectOperation : Message -> string
override this.SelectOperation : Message -> string
Public Function SelectOperation (ByRef message As Message) As String

Parameters

message
Message

The Message object sent to invoke a service operation.

Returns

The name of the service operation to call.

Implements

Applies to

SelectOperation(Message, Boolean)

Selects the service operation to call.

protected:
 virtual System::String ^ SelectOperation(System::ServiceModel::Channels::Message ^ % message, [Runtime::InteropServices::Out] bool % uriMatched);
protected virtual string SelectOperation (ref System.ServiceModel.Channels.Message message, out bool uriMatched);
abstract member SelectOperation : Message * bool -> string
override this.SelectOperation : Message * bool -> string
Protected Overridable Function SelectOperation (ByRef message As Message, ByRef uriMatched As Boolean) As String

Parameters

message
Message

The Message object sent to invoke a service operation.

uriMatched
Boolean

A value that specifies whether the URI matched a specific service operation.

Returns

The name of the service operation to call.

Remarks

It is possible that an incoming URI matches an operation, but the HTTP method is not allowed by the operation. In such cases, the Windows Communication Foundation (WCF) runtime returns 404 (Not Found) when uriMatched is false, and returns 405 (Method Not Allowed) when uriMatched is true.

Applies to