Export (0) Print
Expand All

ObjectItemCollection Class

Class for representing a collection of items for the object layer. Most of the implemetation for actual maintainance of the collection is done by ItemCollection.

This API is not CLS-compliant. 

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

[CLSCompliantAttribute(false)]
public sealed class ObjectItemCollection : ItemCollection

The ObjectItemCollection type exposes the following members.

  NameDescription
Public methodObjectItemCollectionInitializes a new instance of the ObjectItemCollection class.
Top

  NameDescription
Public propertyCountGets the number of elements contained in the ReadOnlyCollection<T> instance. (Inherited from ReadOnlyCollection<T>.)
Public propertyDataSpaceGets the data model associated with this item collection. (Inherited from ItemCollection.)
Public propertyIsReadOnlyGets a value indicating whether this collection is read-only. (Inherited from ReadOnlyMetadataCollection<T>.)
Public propertyItem[Int32]Gets the element at the specified index. (Inherited from ReadOnlyCollection<T>.)
Public propertyItem[String]Gets an item from this collection by using the specified identity. (Inherited from ReadOnlyMetadataCollection<T>.)
Top

  NameDescription
Public methodContains(T)Determines whether an element is in the ReadOnlyCollection<T>. (Inherited from ReadOnlyCollection<T>.)
Public methodContains(String)Determines whether the collection contains an item with the specified identity. (Inherited from ReadOnlyMetadataCollection<T>.)
Public methodCopyToCopies the entire ReadOnlyCollection<T> to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ReadOnlyCollection<T>.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetClrType(EnumType) The method returns the underlying CLR type for the specified OSpace type argument. If the DataSpace of the parameter is not OSpace, an ArgumentException is thrown.
Public methodGetClrType(StructuralType)Returns the CLR type that corresponds to the StructuralType supplied by the objectSpaceType parameter.
Public methodGetEntityContainer(String)Returns an EntityContainer object by using the specified entity container name. (Inherited from ItemCollection.)
Public methodGetEntityContainer(String, Boolean)Returns an EntityContainer object by using the specified entity container name. (Inherited from ItemCollection.)
Public methodGetEnumeratorReturns an enumerator that can iterate through this collection. (Inherited from ReadOnlyMetadataCollection<T>.)
Public methodGetFunctions(String)Returns all the overloads of the functions by using the specified name from this item collection. (Inherited from ItemCollection.)
Public methodGetFunctions(String, Boolean)Returns all the overloads of the functions by using the specified name from this item collection. (Inherited from ItemCollection.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetItem<T>(String)Returns a strongly typed GlobalItem object by using the specified identity. (Inherited from ItemCollection.)
Public methodGetItem<T>(String, Boolean)Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search. (Inherited from ItemCollection.)
Public methodGetItems<T>Returns all the items of the specified type from this item collection. (Overrides ItemCollection.GetItems<T>().)
Public methodGetPrimitiveTypesReturns a collection of primitive type objects.
Public methodGetType()Gets the Type of the current instance. (Inherited from Object.)
Public methodGetType(String, String)Returns an EdmType object by using the specified type name and the namespace name in this item collection. (Inherited from ItemCollection.)
Public methodGetType(String, String, Boolean)Returns an EdmType object by using the specified type name and the namespace name from this item collection. (Inherited from ItemCollection.)
Public methodGetValueRetrieves an item from this collection by using the specified identity. (Inherited from ReadOnlyMetadataCollection<T>.)
Public methodIndexOfReturns the index of the specified value in this collection. (Inherited from ReadOnlyMetadataCollection<T>.)
Public methodLoadFromAssembly(Assembly)Loads metadata from the given assembly.
Public methodLoadFromAssembly(Assembly, EdmItemCollection)Loads metadata from the specified assembly.
Public methodLoadFromAssembly(Assembly, EdmItemCollection, Action<String>)Loads metadata from the given assembly.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetClrType(EnumType, Type)Returns the underlying CLR type for the specified OSpace enum type argument. If the DataSpace of the parameter is not OSpace, the method returns false and sets the out parameter to null.
Public methodTryGetClrType(StructuralType, Type)Returns a CLR type corresponding to the StructuralType supplied by the objectSpaceType parameter.
Public methodTryGetEntityContainer(String, EntityContainer)Returns an EntityContainer object by using the specified entity container name. If there is no entity container, the output parameter contains null; otherwise, it contains the first entity container. (Inherited from ItemCollection.)
Public methodTryGetEntityContainer(String, Boolean, EntityContainer)Returns an EntityContainer object by using the specified entity container name. If there is no entity container, this output parameter contains null; otherwise, it contains the first entity container. (Inherited from ItemCollection.)
Public methodTryGetItem<T>(String, T)Returns a strongly typed GlobalItem object by using the specified identity from this item collection. (Inherited from ItemCollection.)
Public methodTryGetItem<T>(String, Boolean, T)Returns a strongly typed GlobalItem object by using the specified identity from this item collection. (Inherited from ItemCollection.)
Public methodTryGetType(String, String, EdmType)Returns an EdmType object by using the specified type name and the namespace name from this item collection. (Inherited from ItemCollection.)
Public methodTryGetType(String, String, Boolean, EdmType)Returns an EdmType object by using the specified type name and the namespace name from this item collection. (Inherited from ItemCollection.)
Public methodTryGetValueRetrieves an item from this collection by using the specified identity. (Inherited from ReadOnlyMetadataCollection<T>.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICollection<T>.AddAdds an item to the ICollection<T>. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodICollection<T>.ClearRemoves all items from the ICollection<T>. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodICollection.CopyToCopies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyICollection<T>.IsReadOnlyGets a value indicating whether the ICollection<T> is read-only. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyICollection.IsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodICollection<T>.RemoveRemoves the first occurrence of a specific object from the ICollection<T>. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyICollection.SyncRootGets an object that can be used to synchronize access to the ICollection. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.AddAdds an item to the IList. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.ClearRemoves all items from the IList. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.ContainsDetermines whether the IList contains a specific value. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.IndexOfDetermines the index of a specific item in the IList. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList<T>.InsertInserts an item to the IList<T> at the specified index. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.InsertInserts an item to the IList at the specified index. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyIList.IsFixedSizeGets a value indicating whether the IList has a fixed size. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyIList.IsReadOnlyGets a value indicating whether the IList is read-only. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyIList<T>.ItemGets the element at the specified index. An NotSupportedException occurs if you try to set the item at the specified index. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate propertyIList.ItemGets the element at the specified index. A NotSupportedException occurs if you try to set the item at the specified index. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.RemoveRemoves the first occurrence of a specific object from the IList. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList<T>.RemoveAtRemoves the IList<T> item at the specified index. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Explicit interface implemetationPrivate methodIList.RemoveAtRemoves the IList item at the specified index. This implementation always throws NotSupportedException. (Inherited from ReadOnlyCollection<T>.)
Top

No content here will be updated; please do not add material here.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft