Share via


MetadataWorkspace.TryGetType Method

Definition

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