Condividi tramite


Metodo IDataServiceMetadataProvider.TryResolveResourceType

Tenta di ottenere un tipo di risorsa in base al nome specificato.

Spazio dei nomi  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Sintassi

'Dichiarazione
Function TryResolveResourceType ( _
    name As String, _
    <OutAttribute> ByRef resourceType As ResourceType _
) As Boolean
'Utilizzo
Dim instance As IDataServiceMetadataProvider
Dim name As String
Dim resourceType As ResourceType
Dim returnValue As Boolean

returnValue = instance.TryResolveResourceType(name, _
    resourceType)
bool TryResolveResourceType(
    string name,
    out ResourceType resourceType
)
bool TryResolveResourceType(
    String^ name, 
    [OutAttribute] ResourceType^% resourceType
)
abstract TryResolveResourceType : 
        name:string * 
        resourceType:ResourceType byref -> bool 
function TryResolveResourceType(
    name : String, 
    resourceType : ResourceType
) : boolean

Parametri

Valore restituito

Tipo: System.Boolean
true se viene trovato un tipo di risorsa con l'oggetto name fornito. In caso contrario, false.

Vedere anche

Riferimento

IDataServiceMetadataProvider Interfaccia

Spazio dei nomi System.Data.Services.Providers