ItemCollection.GetType 方法

定义

使用指定的类型名称和命名空间名称从此项集合中返回一个 EdmType 对象。Returns an EdmType object by using the specified type name and the namespace name in this item collection.

重载

GetType(String, String)

使用指定的类型名称和命名空间名称从此项集合中返回一个 EdmType 对象。Returns an EdmType object by using the specified type name and the namespace name in this item collection.

GetType(String, String, Boolean)

使用指定的类型名称和命名空间名称从此项集合中返回一个 EdmType 对象。Returns an EdmType object by using the specified type name and the namespace name from this item collection.

GetType(String, String)

使用指定的类型名称和命名空间名称从此项集合中返回一个 EdmType 对象。Returns an EdmType object by using the specified type name and the namespace name in this item collection.

public:
 System::Data::Metadata::Edm::EdmType ^ GetType(System::String ^ name, System::String ^ namespaceName);
public System.Data.Metadata.Edm.EdmType GetType (string name, string namespaceName);
override this.GetType : string * string -> System.Data.Metadata.Edm.EdmType
Public Function GetType (name As String, namespaceName As String) As EdmType

参数

name
String

类型的名称。The name of the type.

namespaceName
String

类型的命名空间。The namespace of the type.

返回

EdmType

一个 EdmType 对象,表示此项集合中与指定的类型名称和命名空间名称匹配的类型。An EdmType object that represents the type that matches the specified type name and the namespace name in this item collection. 如果不存在匹配的类型,此方法将返回 null。If there is no matched type, this method returns null.

适用于

GetType(String, String, Boolean)

使用指定的类型名称和命名空间名称从此项集合中返回一个 EdmType 对象。Returns an EdmType object by using the specified type name and the namespace name from this item collection.

public:
 System::Data::Metadata::Edm::EdmType ^ GetType(System::String ^ name, System::String ^ namespaceName, bool ignoreCase);
public System.Data.Metadata.Edm.EdmType GetType (string name, string namespaceName, bool ignoreCase);
override this.GetType : string * string * bool -> System.Data.Metadata.Edm.EdmType
Public Function GetType (name As String, namespaceName As String, ignoreCase As Boolean) As EdmType

参数

name
String

类型的名称。The name of the type.

namespaceName
String

类型的命名空间。The namespace of the type.

ignoreCase
Boolean

如果执行不区分大小写的搜索,则为 true;否则为 falsetrue to perform the case-insensitive search; otherwise, false.

返回

EdmType

一个 EdmType 对象,表示此项集合中与指定的类型名称和命名空间名称匹配的类型。An EdmType object that represents the type that matches the specified type name and the namespace name in this item collection. 如果不存在匹配的类型,此方法将返回 null。If there is no matched type, this method returns null.

适用于