MetadataWorkspace.GetType 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
GetType(String, String, DataSpace) |
Returns an EdmType object by using the specified type name, namespace name, and data model. |
GetType(String, String, Boolean, DataSpace) |
Returns an EdmType object by using the specified type name, namespace name, and data model. |
GetType(String, String, DataSpace)
Returns an EdmType object by using the specified type name, namespace name, and data model.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="GetType")]
public virtual System.Data.Entity.Core.Metadata.Edm.EdmType GetType (string name, string namespaceName, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace);
override this.GetType : string * string * System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Data.Entity.Core.Metadata.Edm.EdmType
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.
Returns
An EdmType object that represents the type that matches the given type name and the namespace name in the specified data model. If there is no matched type, this method returns null.
- Attributes
Exceptions
Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace
Applies to
GetType(String, String, Boolean, DataSpace)
Returns an EdmType object by using the specified type name, namespace name, and data model.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="GetType")]
public virtual System.Data.Entity.Core.Metadata.Edm.EdmType GetType (string name, string namespaceName, bool ignoreCase, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace);
override this.GetType : string * string * bool * System.Data.Entity.Core.Metadata.Edm.DataSpace -> System.Data.Entity.Core.Metadata.Edm.EdmType
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.
Returns
An EdmType object.
- Attributes
Exceptions
Thrown if the space is not a valid space. Valid space is either C, O, CS or OCSpace
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