次の方法で共有


MetadataWorkspace.TryGetItemCollection メソッド

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

MetadataWorkspace の取得をテストします。

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

構文

'宣言
Public Overridable Function TryGetItemCollection ( _
    dataSpace As DataSpace, _
    <OutAttribute> ByRef collection As ItemCollection _
) As Boolean
'使用
Dim instance As MetadataWorkspace 
Dim dataSpace As DataSpace 
Dim collection As ItemCollection 
Dim returnValue As Boolean 

returnValue = instance.TryGetItemCollection(dataSpace, _
    collection)
public virtual bool TryGetItemCollection(
    DataSpace dataSpace,
    out ItemCollection collection
)
public:
virtual bool TryGetItemCollection(
    DataSpace dataSpace, 
    [OutAttribute] ItemCollection^% collection
)
abstract TryGetItemCollection : 
        dataSpace:DataSpace * 
        collection:ItemCollection byref -> bool  
override TryGetItemCollection : 
        dataSpace:DataSpace * 
        collection:ItemCollection byref -> bool
public function TryGetItemCollection(
    dataSpace : DataSpace, 
    collection : ItemCollection
) : boolean

パラメーター

戻り値

型 : System.Boolean
取得が正常に完了した場合は true、それ以外の場合は false。

参照

参照

MetadataWorkspace クラス

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