Share via


ReadOnlyDeviceInfoCollection Class

 

Represents a ReadOnlyObservableCollection of DeviceInfo objects.

Namespace:   Microsoft.WindowsServerSolutions.Common.Devices
Assembly:  DevicesOM (in DevicesOM.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Common.ProviderFramework.ThreadSafeReadOnlyObservableCollection<T>
    Microsoft.WindowsServerSolutions.Common.Devices.ReadOnlyDeviceInfoCollection

Syntax

public class ReadOnlyDeviceInfoCollection : ThreadSafeReadOnlyObservableCollection<DeviceInfo>
public ref class ReadOnlyDeviceInfoCollection : ThreadSafeReadOnlyObservableCollection<DeviceInfo^>
Public Class ReadOnlyDeviceInfoCollection
    Inherits ThreadSafeReadOnlyObservableCollection(Of DeviceInfo)

Constructors

Name Description
System_CAPS_pubmethod ReadOnlyDeviceInfoCollection(ObservableCollection<DeviceInfo>)

Initializes a new instance of the ReadOnlyDeviceInfoCollection class that uses the specified list of DeviceInfo objects.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of elements in the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubproperty IsReadOnly

Indicates whether the collection is read only.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubproperty Item[Int32]

Gets the item at the specified index from the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

Methods

Name Description
System_CAPS_pubmethod Contains(T)

Determines whether the collection contains a specified item.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod Contains(Object)

Determines whether the collection contains a specified value.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod ContainsId(String)

Indicates whether the connection contains a device with the specified device identifier.

System_CAPS_pubmethod CopyTo(T[], Int32)

Copies the elements of the collection to an array, starting at a specified index.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod CopyTo(Array, Int32)

Copies the elements of the collection to an array, starting at a specified index.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetDeviceIds()

Returns a collection of device identifiers.

System_CAPS_pubmethod GetDeviceInfo(String)

Returns information about a specified device.

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that iterates through a collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IndexOf(T)

Returns the index of the first occurrence of an object in the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod IndexOf(Object)

Returns the index of the first occurrence of an object in the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Remove(T)

Removes the specified item from the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent CollectionChanged

Represents an event that occurs when an item is added or removed.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubevent PropertyChanged

Represents an event that occurs when a property value changes.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<T>.Add(T)

Adds the specified item to the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<T>.Clear()

Clears the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList<T>.Insert(Int32, T)

Inserts the specified item into the collection at the specified index.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList<T>.RemoveAt(Int32)

Removes the item at the specified index from the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Add(Object)

Adds the specified value to the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Clear()

Clears the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Insert(Int32, Object)

Inserts the specified value into the collection at the specified index.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Remove(Object)

Removes the specified value from the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.RemoveAt(Int32)

Removes the value at the specified index from the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.IsSynchronized

Indicates whether the collection is synchronized.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.SyncRoot

Gets an object that can be used to synchronize access to the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.IsFixedSize

Indicates whether the collection is a fixed size.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.Item[Int32]

Gets the item at the specified index from the collection.(Inherited from ThreadSafeReadOnlyObservableCollection<T>.)

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.

See Also

Microsoft.WindowsServerSolutions.Common.Devices Namespace

Return to top