Compartir a través de


IDataServiceQueryProvider.GetResourceType Método

Obtiene el tipo de recurso de la instancia que es especificada por el parámetro.

Espacio de nombres:  System.Data.Services.Providers
Ensamblado:  Microsoft.Data.Services (en Microsoft.Data.Services.dll)

Sintaxis

'Declaración
Function GetResourceType ( _
    target As Object _
) As ResourceType
'Uso
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

Parámetros

  • target
    Tipo: System.Object
    Instancia de la que se desea extraer un tipo de recurso.

Valor devuelto

Tipo: System.Data.Services.Providers.ResourceType
ResourceType del objeto proporcionado.

Comentarios

Devuelve true si la instancia determinada representa una colección; de lo contrario, devuelve false.

Vea también

Referencia

IDataServiceQueryProvider Interfaz

Espacio de nombres System.Data.Services.Providers