EntityFrameworkDataServiceProvider.TryResolveResourceType Method
Given the specified name, tries to find a type.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Overridable Function TryResolveResourceType ( _
name As String, _
<OutAttribute> ByRef resourceType As ResourceType _
) As Boolean
'Usage
Dim instance As EntityFrameworkDataServiceProvider
Dim name As String
Dim resourceType As ResourceType
Dim returnValue As Boolean
returnValue = instance.TryResolveResourceType(name, _
resourceType)
public virtual bool TryResolveResourceType(
string name,
out ResourceType resourceType
)
public:
virtual bool TryResolveResourceType(
String^ name,
[OutAttribute] ResourceType^% resourceType
)
abstract TryResolveResourceType :
name:string *
resourceType:ResourceType byref -> bool
override TryResolveResourceType :
name:string *
resourceType:ResourceType byref -> bool
public function TryResolveResourceType(
name : String,
resourceType : ResourceType
) : boolean
Parameters
- name
Type: System.String
Name of the type to resolve.
- resourceType
Type: System.Data.Services.Providers.ResourceType%
Returns the resolved resource type, null if no resource type for the given name was found.
Return Value
Type: System.Boolean
True if we found the resource type for the given name, false otherwise.
Implements
IDataServiceMetadataProvider.TryResolveResourceType(String, ResourceType%)