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
パラメーター
- dataSpace
型 : System.Data.Entity.Core.Metadata.Edm.DataSpace
MetadataWorkspace の取得を試みる DataSpace。
- collection
型 : System.Data.Entity.Core.Metadata.Edm.ItemCollection%
このメソッドが返されるときに、項目コレクションを格納します。 このパラメーターは初期化せずに渡されます。
戻り値
型 : System.Boolean
取得が正常に完了した場合は true、それ以外の場合は false。