MetadataWorkspace.TryGetType MetadataWorkspace.TryGetType MetadataWorkspace.TryGetType Method

Definition

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

Overloads

TryGetType(String, String, DataSpace, EdmType) TryGetType(String, String, DataSpace, EdmType) 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) TryGetType(String, String, Boolean, DataSpace, EdmType) 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) TryGetType(String, String, DataSpace, EdmType) TryGetType(String, String, DataSpace, EdmType)

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

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

Parameters

name
String String String

The name of the type.

namespaceName
String String String

The namespace of the type.

dataSpace
DataSpace DataSpace DataSpace

The conceptual model on which the type is searched.

type
EdmType EdmType 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.

TryGetType(String, String, Boolean, DataSpace, EdmType) TryGetType(String, String, Boolean, DataSpace, EdmType) TryGetType(String, String, Boolean, DataSpace, EdmType)

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

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

Parameters

name
String String String

The name of the type.

namespaceName
String String String

The namespace of the type.

ignoreCase
Boolean Boolean Boolean

true to perform the case-insensitive search; otherwise, false.

dataSpace
DataSpace DataSpace DataSpace

The conceptual model on which the type is searched.

type
EdmType EdmType 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