Compartir a través de


CimAsyncStatus.Subscribe Method (IObserver<Object>)

 

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

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

Syntax

public IDisposable Subscribe(
    IObserver<object> observer
)
public:
virtual IDisposable^ Subscribe(
    IObserver<Object^>^ observer
) sealed
abstract Subscribe : 
        observer:IObserver<Object> -> IDisposable
override Subscribe : 
        observer:IObserver<Object> -> IDisposable
Public Function Subscribe (
    observer As IObserver(Of Object)
) As IDisposable

Parameters

  • observer
    Type: System.IObserver<Object>

    An observer that will receive asynchronous notifications about the results of the operation.

Return Value

Type: System.IDisposable

A disposable object that, when disposed, initiates the cancellation process and suppress further callbacks to the IObserver<object> instance.

Implements

IObservable<T>.Subscribe(IObserver<T>)

See Also

CimAsyncStatus Class
Microsoft.Management.Infrastructure.Generic Namespace

Return to top