MetadataWorkspace.TryGetItemCollection Method (DataSpace, ItemCollection)

 

Tests the retrieval of MetadataWorkspace.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

public virtual bool TryGetItemCollection(
	DataSpace dataSpace,
	out ItemCollection collection
)

Parameters

dataSpace
Type: System.Data.Entity.Core.Metadata.Edm.DataSpace

The DataSpace from which to attempt retrieval of MetadataWorkspace .

collection
Type: System.Data.Entity.Core.Metadata.Edm.ItemCollection

When this method returns, contains the item collection. This parameter is passed uninitialized.

Return Value

Type: System.Boolean

true if the retrieval was successful; otherwise, false.