共用方式為


IDataServiceMetadataProvider.TryResolveResourceSet 方法

嘗試根據指定的名稱取得資源集。

命名空間:  System.Data.Services.Providers
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Function TryResolveResourceSet ( _
    name As String, _
    <OutAttribute> ByRef resourceSet As ResourceSet _
) As Boolean
'用途
Dim instance As IDataServiceMetadataProvider
Dim name As String
Dim resourceSet As ResourceSet
Dim returnValue As Boolean

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

參數

傳回值

型別:System.Boolean
找到具有給定 name 的資源集時,則為 true,否則為 false。

請參閱

參考

IDataServiceMetadataProvider 介面

System.Data.Services.Providers 命名空間