MetadataWorkspace.TryGetType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryGetType(String, String, DataSpace, EdmType) |
Returns an EdmType object by using the specified type name, namespace name, and data model. |
TryGetType(String, String, Boolean, DataSpace, EdmType) |
Returns an EdmType object by using the specified type name, namespace name, and data model. |
TryGetType(String, String, DataSpace, EdmType)
Returns an EdmType object by using the specified type name, namespace name, and data model.
public virtual bool TryGetType (string name, string namespaceName, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace, out System.Data.Entity.Core.Metadata.Edm.EdmType type);
abstract member TryGetType : string * string * System.Data.Entity.Core.Metadata.Edm.DataSpace * -> bool
override this.TryGetType : string * string * System.Data.Entity.Core.Metadata.Edm.DataSpace * -> bool
Parameters
- name
- String
The name of the type.
- namespaceName
- String
The namespace of the type.
- dataSpace
- DataSpace
The conceptual model on which the type is searched.
- type
- EdmType
When this method returns, contains an EdmType object. This parameter is passed uninitialized.
Returns
true if there is a type that matches the search criteria; otherwise, false.
Applies to
TryGetType(String, String, Boolean, DataSpace, EdmType)
Returns an EdmType object by using the specified type name, namespace name, and data model.
public virtual bool TryGetType (string name, string namespaceName, bool ignoreCase, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace, out System.Data.Entity.Core.Metadata.Edm.EdmType type);
abstract member TryGetType : string * string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace * -> bool
override this.TryGetType : string * string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace * -> bool
Parameters
- name
- String
The name of the type.
- namespaceName
- String
The namespace of the type.
- ignoreCase
- Boolean
true to perform the case-insensitive search; otherwise, false.
- dataSpace
- DataSpace
The conceptual model on which the type is searched.
- type
- EdmType
When this method returns, contains an EdmType object. This parameter is passed uninitialized.
Returns
true if there is a type that matches the search criteria; otherwise, false.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for