Partager via


CimAsyncMultipleResults<T> Class

 

Represents a pending asynchronous operation that returns zero, one, or more objects.

Namespace:   Microsoft.Management.Infrastructure.Generic
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<T>

Syntax

public class CimAsyncMultipleResults<T> : IObservable<T>
generic<typename T>
public ref class CimAsyncMultipleResults : IObservable<T>
type CimAsyncMultipleResults<'T> = 
    class
        interface IObservable<'T>
    end
Public Class CimAsyncMultipleResults(Of T)
    Implements IObservable(Of T)

Type Parameters

  • T
    Type of results that the wrapped operation returns.

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 GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Subscribe(IObserver<T>)

Starts the operation and then communicates the results back to the given observer.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

The operation wrapped by this class does not begin until the Subscribe method is called. That method may be called more than once, with each call beginning another operation. The results of an operation are asynchronously communicated to the observer that is passed to that method. See the IObservable<T> and IObserver<T> interfaces for more details about the asynchronous pattern exposed by this class.

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.Management.Infrastructure.Generic Namespace

Return to top