WebHttpDispatchOperationSelector.SelectOperation Method (Message, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 3.5
Return to top