WebHttpDispatchOperationSelector.HttpOperationSelectorUriMatchedPropertyName Field

Definition

A string used as a key for storing the value that indicates whether a call to a service operation was matched by the URI but not by the HTTP method.

C#
public const string HttpOperationSelectorUriMatchedPropertyName;

Field Value

Remarks

Two different errors can occur when calling a service operation: "404 Endpoint/URI not found" and "405 Method Not Allowed." This string and its associated Boolean value allow the service model to differentiate between these two errors. The "404 Endpoint/URI" error occurs when an invalid URI is used. The "405 Method Not Allowed" error occurs when a valid URI is used but the HTTP method was not valid for the URI.

Applies to

Производ Верзије
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1