次の方法で共有


ObjectItemCollection.TryGetClrType メソッド (EnumType, Type%)

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

指定した OSpace 列挙型引数の基になる CLR 型を返します。 パラメーターの DataSpace が OSpace でない場合、メソッドは false を返し、out パラメーターを null に設定します。

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

構文

'宣言
<SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")> _
Public Function TryGetClrType ( _
    objectSpaceType As EnumType, _
    <OutAttribute> ByRef clrType As Type _
) As Boolean
'使用
Dim instance As ObjectItemCollection 
Dim objectSpaceType As EnumType 
Dim clrType As Type 
Dim returnValue As Boolean 

returnValue = instance.TryGetClrType(objectSpaceType, _
    clrType)
[SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public bool TryGetClrType(
    EnumType objectSpaceType,
    out Type clrType
)
[SuppressMessageAttribute(L"Microsoft.Performance", L"CA1822:MarkMembersAsStatic")]
public:
bool TryGetClrType(
    EnumType^ objectSpaceType, 
    [OutAttribute] Type^% clrType
)
[<SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")>]
member TryGetClrType : 
        objectSpaceType:EnumType * 
        clrType:Type byref -> bool
public function TryGetClrType(
    objectSpaceType : EnumType, 
    clrType : Type
) : boolean

パラメーター

  • clrType
    型 : System.Type%
    OSpace 引数の CLR 列挙型

戻り値

型 : System.Boolean
成功した場合は true、失敗した場合は false

参照

参照

ObjectItemCollection クラス

TryGetClrType オーバーロード

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