共用方式為


ItemCollection.TryGetType 方法 (String, String, Boolean, EdmType%)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

使用指定的類型名稱和此項目集合中的命名空間名稱,傳回 EdmType 物件。

命名空間:  System.Data.Entity.Core.Metadata.Edm
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Function TryGetType ( _
    name As String, _
    namespaceName As String, _
    ignoreCase As Boolean, _
    <OutAttribute> ByRef type As EdmType _
) As Boolean
'用途
Dim instance As ItemCollection 
Dim name As String 
Dim namespaceName As String 
Dim ignoreCase As Boolean 
Dim type As EdmType 
Dim returnValue As Boolean 

returnValue = instance.TryGetType(name, _
    namespaceName, ignoreCase, type)
public bool TryGetType(
    string name,
    string namespaceName,
    bool ignoreCase,
    out EdmType type
)
public:
bool TryGetType(
    String^ name, 
    String^ namespaceName, 
    bool ignoreCase, 
    [OutAttribute] EdmType^% type
)
member TryGetType : 
        name:string * 
        namespaceName:string * 
        ignoreCase:bool * 
        type:EdmType byref -> bool
public function TryGetType(
    name : String, 
    namespaceName : String, 
    ignoreCase : boolean, 
    type : EdmType
) : boolean

參數

  • ignoreCase
    類型:System.Boolean
    若要執行不區分大小寫的搜尋,則為 true,否則為 false。

傳回值

類型:System.Boolean
如果有符合搜尋準則的類型,則為 true,否則為 false。

請參閱

參考

ItemCollection 類別

TryGetType 多載

System.Data.Entity.Core.Metadata.Edm 命名空間