IDataServiceQueryProvider.GetResourceType Method

Gets the resource type for the instance that is specified by the parameter.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Function GetResourceType ( _
    target As Object _
) As ResourceType
'Usage
Dim instance As IDataServiceQueryProvider 
Dim target As Object 
Dim returnValue As ResourceType 

returnValue = instance.GetResourceType(target)
ResourceType GetResourceType(
    Object target
)
ResourceType^ GetResourceType(
    Object^ target
)
abstract GetResourceType : 
        target:Object -> ResourceType
function GetResourceType(
    target : Object
) : ResourceType

Parameters

  • target
    Type: System.Object
    Instance to extract a resource type from.

Return Value

Type: System.Data.Services.Providers.ResourceType
The ResourceType of the supplied object.

Remarks

Returns true if the given instance represents a collection; otherwise returns false.

See Also

Reference

IDataServiceQueryProvider Interface

System.Data.Services.Providers Namespace