次の方法で共有


MetadataWorkspace.GetType メソッド (String, String, DataSpace)

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

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

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

構文

'宣言
<SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId := "GetType")> _
Public Overridable Function GetType ( _
    name As String, _
    namespaceName As String, _
    dataSpace As DataSpace _
) As EdmType
'使用
Dim instance As MetadataWorkspace 
Dim name As String 
Dim namespaceName As String 
Dim dataSpace As DataSpace 
Dim returnValue As EdmType 

returnValue = instance.GetType(name, namespaceName, _
    dataSpace)
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "GetType")]
public virtual EdmType GetType(
    string name,
    string namespaceName,
    DataSpace dataSpace
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1716:IdentifiersShouldNotMatchKeywords", MessageId = L"GetType")]
public:
virtual EdmType^ GetType(
    String^ name, 
    String^ namespaceName, 
    DataSpace dataSpace
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "GetType")>]
abstract GetType : 
        name:string * 
        namespaceName:string * 
        dataSpace:DataSpace -> EdmType 
[<SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "GetType")>]
override GetType : 
        name:string * 
        namespaceName:string * 
        dataSpace:DataSpace -> EdmType
public function GetType(
    name : String, 
    namespaceName : String, 
    dataSpace : DataSpace
) : EdmType

パラメーター

戻り値

型 : System.Data.Entity.Core.Metadata.Edm.EdmType
指定されたデータ モデルにおいて、指定された型名と名前空間名に一致する型を表す EdmType オブジェクト。一致する型が存在しない場合は、NULL が返されます。

例外

例外 状態
ArgumentException

領域が有効な領域でない場合にスローされます。 有効な領域は、C、O、CS、OCSpace です。

参照

参照

MetadataWorkspace クラス

GetType オーバーロード

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