Partager via


ObservableCollectionHelper<TPublicType, TWireType> Class

 

Represents the methods that are used to manage a collection of observable objects.

Namespace:   Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly:  ProviderFramework (in ProviderFramework.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Common.ProviderFramework.ObservableCollectionHelper<TPublicType, TWireType>

Syntax

public class ObservableCollectionHelper<TPublicType, TWireType>
where TPublicType : class
generic<typename TPublicType, typename TWireType>
where TPublicType : ref class
public ref class ObservableCollectionHelper 
Public Class ObservableCollectionHelper(Of TPublicType As Class, TWireType)

Type Parameters

  • TPublicType
    The public type that is exposed.
  • TWireType
    The data contract object that represents the public type.

Constructors

Name Description
System_CAPS_pubmethod ObservableCollectionHelper<TPublicType, TWireType>(Func<TWireType, TPublicType>, Action<TPublicType, TWireType>)

Initializes a new instance of the ObservableCollectionHelper<TPublicType, TWireType> class with the specified public type builder and the specified update.

System_CAPS_pubmethod ObservableCollectionHelper<TPublicType, TWireType>(Func<TWireType, TPublicType>, Action<TPublicType, TWireType>, IEqualityComparer<TWireType>)

Initializes a new instance of the ObservableCollectionHelper<TPublicType, TWireType> class with the specified public type builder, the specified update, and the specified comparison object.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetReadOnlyObservableCollection()

Returns a ReadOnlyObservableCollection<T> that is managed by this class.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RemoveItem(TWireType)

Removes an item from the collection.

System_CAPS_pubmethod SetList(IEnumerable<TWireType>)

Sets the contents of the collection. This class is typically used to set the initial contents of the list or to refresh the list after a reconnection.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UpdateData(TWireType)

Updates the data for the specified wire type.

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.ProviderFramework Namespace

Return to top