共用方式為


IDataServiceMetadataProvider.TryResolveResourceType 方法

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

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

語法

'宣告
Function TryResolveResourceType ( _
    name As String, _
    <OutAttribute> ByRef resourceType As ResourceType _
) As Boolean
'用途
Dim instance As IDataServiceMetadataProvider
Dim name As String
Dim resourceType As ResourceType
Dim returnValue As Boolean

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

參數

傳回值

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

請參閱

參考

IDataServiceMetadataProvider 介面

System.Data.Services.Providers 命名空間