WebHttpDispatchOperationSelector.SelectOperation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- 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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για