共用方式為


IDataServiceMetadataProvider.TryResolveResourceType 方法

定義

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

public:
 bool TryResolveResourceType(System::String ^ name, [Runtime::InteropServices::Out] System::Data::Services::Providers::ResourceType ^ % resourceType);
public bool TryResolveResourceType (string name, out System.Data.Services.Providers.ResourceType resourceType);
abstract member TryResolveResourceType : string * ResourceType -> bool
Public Function TryResolveResourceType (name As String, ByRef resourceType As ResourceType) As Boolean

參數

name
String

要解析之類型的名稱。

resourceType
ResourceType

傳回資源型別,如果找不到具有指定之 name 的資源型別,則傳回 null 值。

傳回

若找到具有指定 name 的資源類型,則為 true;否則為 false

適用於