Export (0) Print
Expand All

ReadOnlyMetadataCollection(Of T) Class

Represents a collection of members in the ADO.NET metadata hierarchy by providing a read-only collection with advanced lookup capabilities. This class is derived from the ReadOnlyCollection class. 

System.Object
  System.Collections.ObjectModel.ReadOnlyCollection(Of T)
    System.Data.Metadata.Edm.ReadOnlyMetadataCollection(Of T)
      System.Data.Metadata.Edm.ItemCollection

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

'Declaration
Public Class ReadOnlyMetadataCollection(Of T As MetadataItem) _
	Inherits ReadOnlyCollection(Of T)

Type Parameters

T

The type of elements in the collection.

The ReadOnlyMetadataCollection(Of T) type exposes the following members.

  NameDescription
Public propertyCountGets the number of elements contained in the ReadOnlyCollection(Of T) instance. (Inherited from ReadOnlyCollection(Of T).)
Public propertyIsReadOnlyGets a value indicating whether this collection is read-only.
Public propertyItem(Int32)Gets the element at the specified index. (Inherited from ReadOnlyCollection(Of T).)
Public propertyItem(String)Gets an item from this collection by using the specified identity.
Protected propertyItemsReturns the IList(Of T) that the ReadOnlyCollection(Of T) wraps. (Inherited from ReadOnlyCollection(Of T).)
Top

  NameDescription
Public methodContains(T)Determines whether an element is in the ReadOnlyCollection(Of T). (Inherited from ReadOnlyCollection(Of T).)
Public methodContains(String)Determines whether the collection contains an item with the specified identity.
Public methodCopyToCopies the entire ReadOnlyCollection(Of T) to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ReadOnlyCollection(Of T).)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can iterate through this collection.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueRetrieves an item from this collection by using the specified identity.
Public methodIndexOfReturns the index of the specified value in this collection.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetValueRetrieves an item from this collection by using the specified identity.
Top

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

.NET Framework

Supported in: 4.6, 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