語言

WebHttpDispatchOperationSelector.HttpOperationSelectorUriMatchedPropertyName 欄位

定義

一個字串用作儲存值的鍵,指示呼叫服務操作是否被 URI 匹配,但 HTTP 方法未匹配。

public: System::String ^ HttpOperationSelectorUriMatchedPropertyName;
public const string HttpOperationSelectorUriMatchedPropertyName;
val mutable HttpOperationSelectorUriMatchedPropertyName : string
Public Const HttpOperationSelectorUriMatchedPropertyName As String 

欄位值

備註

呼叫服務操作時可能出現兩種錯誤:「找不到 404 端點/URI」和「405 方法不被允許」。此字串及其相關的布林值使服務模型能區分這兩種錯誤。 「404端點/URI」錯誤發生在使用無效 URI 時。 「405 方法不被允許」錯誤發生在使用有效 URI 但 HTTP 方法未被有效時。

適用於