Condividi tramite


CimAsyncResult<T> Class

 

Represents a pending asynchronous operation that returns a single object.

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

Inheritance Hierarchy

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

Syntax

public class CimAsyncResult<T> : IObservable<T>
generic<typename T>
public ref class CimAsyncResult : IObservable<T>
type CimAsyncResult<'T> = 
    class
        interface IObservable<'T>
    end
Public Class CimAsyncResult(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