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
參數
- name
型別:System.String
要解析之類型的名稱。
- resourceType
型別:System.Data.Services.Providers.ResourceType%
如果找不到具有給定 name 的資源類型,則傳回資源類型或 nullnull 參考 (在 Visual Basic 中為 Nothing) 值。
傳回值
型別:System.Boolean
找到具有給定 name 的資源類型時,則為 true,否則為 false。