MetadataWorkspace.GetType Method

Definition

Returns the type metadata that is described via an EdmType object by using the specified type name, the namespace name, and the data model.

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.

public System.Data.Metadata.Edm.EdmType GetType(string name, string namespaceName, System.Data.Metadata.Edm.DataSpace dataSpace);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetType(String, String, Boolean, DataSpace)

Returns an EdmType object by using the specified type name, namespace name, and data model.

public System.Data.Metadata.Edm.EdmType GetType(string name, string namespaceName, bool ignoreCase, System.Data.Metadata.Edm.DataSpace dataSpace);

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1