Bewerken

Delen via


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)

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:
 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
Public Function TryGetType (name As String, namespaceName As String, dataSpace As DataSpace, ByRef type As EdmType) As Boolean

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:
 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
Public Function TryGetType (name As String, namespaceName As String, ignoreCase As Boolean, dataSpace As DataSpace, ByRef type As EdmType) As Boolean

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