次の方法で共有


MetadataWorkspace.TryGetType メソッド (String, String, DataSpace, EdmType%)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定された型名、名前空間名、およびデータ モデルを使用して、EdmType オブジェクトを返します。

名前空間:  System.Data.Entity.Core.Metadata.Edm
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public Overridable Function TryGetType ( _
    name As String, _
    namespaceName As String, _
    dataSpace As DataSpace, _
    <OutAttribute> ByRef type As EdmType _
) As Boolean
'使用
Dim instance As MetadataWorkspace 
Dim name As String 
Dim namespaceName As String 
Dim dataSpace As DataSpace 
Dim type As EdmType 
Dim returnValue As Boolean 

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

パラメーター

戻り値

型 : System.Boolean
検索条件と一致する型が存在した場合は true、それ以外の場合は false。

参照

参照

MetadataWorkspace クラス

TryGetType オーバーロード

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