ReadOnlyLinkedElementCollection<T> Class
Represents a strongly-typed read-only collection of element instances on the opposite side of a relationship.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.ReadOnlyLinkedElementCollection<T>
Microsoft.VisualStudio.Modeling.LinkedElementCollection<T>
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Class ReadOnlyLinkedElementCollection(Of T As ModelElement) _
Implements IList(Of T), ICollection(Of T), _
IEnumerable(Of T), IEnumerable, IList, ICollection, IBindingList, _
ITypedList, IRaiseItemChangedEvents, INotifyCollectionChanged, INotifyPropertyChanged
public class ReadOnlyLinkedElementCollection<T> : IList<T>,
ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection,
IBindingList, ITypedList, IRaiseItemChangedEvents, INotifyCollectionChanged, INotifyPropertyChanged
where T : ModelElement
generic<typename T>
where T : ModelElement
public ref class ReadOnlyLinkedElementCollection : IList<T>,
ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection,
IBindingList, ITypedList, IRaiseItemChangedEvents, INotifyCollectionChanged, INotifyPropertyChanged
type ReadOnlyLinkedElementCollection<'T when 'T : ModelElement> =
class
interface IList<'T>
interface ICollection<'T>
interface IEnumerable<'T>
interface IEnumerable
interface IList
interface ICollection
interface IBindingList
interface ITypedList
interface IRaiseItemChangedEvents
interface INotifyCollectionChanged
interface INotifyPropertyChanged
end
JScript does not support generic types or methods.
Type Parameters
- T
The ReadOnlyLinkedElementCollection<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReadOnlyLinkedElementCollection<T> | Initializes a new instance of the ReadOnlyLinkedElementCollection class. |
Top
Properties
Name | Description | |
---|---|---|
CommittedCount | Gets the actual number of role players in collection (after commit) | |
Count | Gets the number of role players in the collection. | |
IntermediateCount | Gets the intermediate number of role players in collection(during commit). | |
Item | Gets or sets the role player at a specified index inside the collection. | |
SourceDomainRole | Gets the source role of the relationship that this collection represents. | |
SourceElement | Gets the source role player which was inherited by this collection. | |
TargetDomainRole | Gets the target role of the relationship that this collection represents. |
Top
Methods
Name | Description | |
---|---|---|
Contains | Gets whether a specified role player belongs to the collection. | |
CopyTo | Copies all role players to an array. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Exists | Determines whether there is at least one element for which a given condition is true. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find | Finds the first element in the collection which matches a given condition. | |
FindAll | Finds all elements which satisfy a given condition. | |
FindIndex | Finds the first element which satisfies a given condition. | |
ForEach | Runs the specified action on all elements in the collection. | |
GetEnumerator | Gets a strongly-typed enumerator for this collection. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetItemProperties | Returns a complete set of browsable properties for the item type of the collection. If real items exists in the collection, then replace the reflective ones with IMS ones where possible to allow transacted updates through them. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Gets the index of a role player inside the collection. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToArray | Creates an array and copies all role players in the collection into it. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TrueForAll | Checks if a given condition is true for all elements in the collection. |
Top
Fields
Name | Description | |
---|---|---|
listChangedHandler |
Top
Explicit Interface Implementations
Top
Remarks
Represents a read-only collection of element instances on the opposite side of the links for a relationship in which a particular element participates.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.