Edit

Share via


IDataServiceMetadataProvider.TryResolveResourceType Method

Definition

Tries to get a resource type based on the specified name.

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

Parameters

name
String

Name of the type to resolve.

resourceType
ResourceType

Returns the resource type or a null value if a resource type with the given name is not found.

Returns

true if the resource type with the given name is found; otherwise, false.

Applies to