Share via


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

Return Value

Type: System.Boolean
True if we found the resource type for the given name, false otherwise.

Implements

IDataServiceMetadataProvider.TryResolveResourceType(String, ResourceType%)

See Also

Reference

EntityFrameworkDataServiceProvider Class

System.Data.Services.Providers Namespace