Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WebHttpDispatchOperationSelector.SelectOperation Method (Message, Boolean)

Selects the service operation to call.

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

protected virtual string SelectOperation(
	ref Message message,
	out bool uriMatched


Type: System.ServiceModel.Channels.Message

The Message object sent to invoke a service operation.

Type: System.Boolean

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

Return Value

Type: System.String
The name of the service operation to call.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 3.5 SP1
© 2015 Microsoft