Condividi tramite


Metodo MetadataWorkspace.TryGetType (String, String, DataSpace, EdmType%)

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Restituisce un oggetto EdmType utilizzando il nome del tipo, il nome dello spazio dei nomi e il modello di dati specificati.

Spazio dei nomi:  System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Overridable Function TryGetType ( _
    name As String, _
    namespaceName As String, _
    dataSpace As DataSpace, _
    <OutAttribute> ByRef type As EdmType _
) As Boolean
'Utilizzo
Dim instance As MetadataWorkspace 
Dim name As String 
Dim namespaceName As String 
Dim dataSpace As DataSpace 
Dim type As EdmType 
Dim returnValue As Boolean 

returnValue = instance.TryGetType(name, _
    namespaceName, dataSpace, type)
public virtual bool TryGetType(
    string name,
    string namespaceName,
    DataSpace dataSpace,
    out EdmType type
)
public:
virtual bool TryGetType(
    String^ name, 
    String^ namespaceName, 
    DataSpace dataSpace, 
    [OutAttribute] EdmType^% type
)
abstract TryGetType : 
        name:string * 
        namespaceName:string * 
        dataSpace:DataSpace * 
        type:EdmType byref -> bool  
override TryGetType : 
        name:string * 
        namespaceName:string * 
        dataSpace:DataSpace * 
        type:EdmType byref -> bool
public function TryGetType(
    name : String, 
    namespaceName : String, 
    dataSpace : DataSpace, 
    type : EdmType
) : boolean

Parametri

Valore restituito

Tipo: System.Boolean
true se è presente un tipo che corrisponde ai criteri di ricerca; in caso contrario, false.

Vedere anche

Riferimento

MetadataWorkspace Classe

Overload TryGetType

Spazio dei nomi System.Data.Entity.Core.Metadata.Edm