共用方式為


IDataServiceMetadataProvider.TryResolveServiceOperation 方法

定義

嘗試根據指定的名稱取得服務作業。

public:
 bool TryResolveServiceOperation(System::String ^ name, [Runtime::InteropServices::Out] System::Data::Services::Providers::ServiceOperation ^ % serviceOperation);
public bool TryResolveServiceOperation (string name, out System.Data.Services.Providers.ServiceOperation serviceOperation);
abstract member TryResolveServiceOperation : string * ServiceOperation -> bool
Public Function TryResolveServiceOperation (name As String, ByRef serviceOperation As ServiceOperation) As Boolean

參數

name
String

要解析之服務作業的名稱。

serviceOperation
ServiceOperation

傳回服務作業,如果找不到具有指定之 name 的服務作業,則傳回 null 值。

傳回

若找到具有指定 name 的服務作業,則為 true;否則為 false

適用於