IDataServiceMetadataProvider.TryResolveServiceOperation 方法

尝试获取基于指定名称的服务操作。

命名空间:  System.Data.Services.Providers
程序集:  Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)

语法

声明
Function TryResolveServiceOperation ( _
    name As String, _
    <OutAttribute> ByRef serviceOperation As ServiceOperation _
) As Boolean
用法
Dim instance As IDataServiceMetadataProvider
Dim name As String
Dim serviceOperation As ServiceOperation
Dim returnValue As Boolean

returnValue = instance.TryResolveServiceOperation(name, _
    serviceOperation)
bool TryResolveServiceOperation(
    string name,
    out ServiceOperation serviceOperation
)
bool TryResolveServiceOperation(
    String^ name, 
    [OutAttribute] ServiceOperation^% serviceOperation
)
abstract TryResolveServiceOperation : 
        name:string * 
        serviceOperation:ServiceOperation byref -> bool 
function TryResolveServiceOperation(
    name : String, 
    serviceOperation : ServiceOperation
) : boolean

参数

  • name
    类型:System.String
    要解析的服务操作的名称。

返回值

类型:System.Boolean
当找到具有给定 name 的服务操作时,为 true ; 否则为 false。

请参阅

参考

IDataServiceMetadataProvider 接口

System.Data.Services.Providers 命名空间