MetadataWorkspace.TryGetType Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne un EdmType objet à l’aide du nom de type, du nom de l’espace de noms et du modèle de données spécifiés.
Surcharges
| Nom | Description |
|---|---|
| TryGetType(String, String, DataSpace, EdmType) |
Retourne un EdmType objet à l’aide du nom de type, du nom de l’espace de noms et du modèle de données spécifiés. |
| TryGetType(String, String, Boolean, DataSpace, EdmType) |
Retourne un EdmType objet à l’aide du nom de type, du nom de l’espace de noms et du modèle de données spécifiés. |
TryGetType(String, String, DataSpace, EdmType)
Retourne un EdmType objet à l’aide du nom de type, du nom de l’espace de noms et du modèle de données spécifiés.
public:
bool TryGetType(System::String ^ name, System::String ^ namespaceName, System::Data::Metadata::Edm::DataSpace dataSpace, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EdmType ^ % type);
public bool TryGetType(string name, string namespaceName, System.Data.Metadata.Edm.DataSpace dataSpace, out System.Data.Metadata.Edm.EdmType type);
member this.TryGetType : string * string * System.Data.Metadata.Edm.DataSpace * EdmType -> bool
Public Function TryGetType (name As String, namespaceName As String, dataSpace As DataSpace, ByRef type As EdmType) As Boolean
Paramètres
- name
- String
Nom du type.
- namespaceName
- String
Espace de noms du type.
- dataSpace
- DataSpace
Modèle conceptuel sur lequel le type est recherché.
- type
- EdmType
Lorsque cette méthode est retournée, contient un EdmType objet. Ce paramètre est passé non initialisé.
Retours
true s’il existe un type qui correspond aux critères de recherche ; sinon, false.
S’applique à
TryGetType(String, String, Boolean, DataSpace, EdmType)
Retourne un EdmType objet à l’aide du nom de type, du nom de l’espace de noms et du modèle de données spécifiés.
public:
bool TryGetType(System::String ^ name, System::String ^ namespaceName, bool ignoreCase, System::Data::Metadata::Edm::DataSpace dataSpace, [Runtime::InteropServices::Out] System::Data::Metadata::Edm::EdmType ^ % type);
public bool TryGetType(string name, string namespaceName, bool ignoreCase, System.Data.Metadata.Edm.DataSpace dataSpace, out System.Data.Metadata.Edm.EdmType type);
member this.TryGetType : string * string * bool * System.Data.Metadata.Edm.DataSpace * EdmType -> bool
Public Function TryGetType (name As String, namespaceName As String, ignoreCase As Boolean, dataSpace As DataSpace, ByRef type As EdmType) As Boolean
Paramètres
- name
- String
Nom du type.
- namespaceName
- String
Espace de noms du type.
- ignoreCase
- Boolean
true pour effectuer la recherche sans respect de la casse ; sinon, false.
- dataSpace
- DataSpace
Modèle conceptuel sur lequel le type est recherché.
- type
- EdmType
Lorsque cette méthode est retournée, contient un EdmType objet. Ce paramètre est passé non initialisé.
Retours
true s’il existe un type qui correspond aux critères de recherche ; sinon, false.