WebHttpDispatchOperationSelector.SelectOperation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
選擇要呼叫的服務操作。
多載
| 名稱 | Description |
|---|---|
| SelectOperation(Message) |
選擇要呼叫的服務操作。 |
| SelectOperation(Message, Boolean) |
選擇要呼叫的服務操作。 |
SelectOperation(Message)
選擇要呼叫的服務操作。
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
參數
傳回
要打電話的服務營運名稱。
實作
適用於
SelectOperation(Message, Boolean)
選擇要呼叫的服務操作。
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
參數
- uriMatched
- Boolean
一個指定 URI 是否符合特定服務操作的值。
傳回
要打電話的服務營運名稱。
備註
有可能接收的 URI 與某個操作相符,但該操作不允許使用 HTTP 方法。 在這種情況下,當 uriMatched 為 false 時,Windows Communication Foundation(WCF)執行時回傳 404(方法不允許),當 uriMatched 為 true 時,回傳 405(方法不允許)。