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
要解析的服务操作的名称。
- serviceOperation
类型:System.Data.Services.Providers.ServiceOperation%
如果找不到具有给定 name 的服务操作,则返回服务操作或 nullnull 引用(在 Visual Basic 中为 Nothing) 值。
返回值
类型:System.Boolean
当找到具有给定 name 的服务操作时,为 true ; 否则为 false。