Export (0) Print
Expand All

Observer.AsObserver(Of T) Method

Hides the identity of an observer.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

'Declaration
<ExtensionAttribute> _
Public Shared Function AsObserver(Of T) ( _
	observer As IObserver(Of T) _
) As IObserver(Of T)
'Usage
Dim observer As IObserver(Of T)
Dim returnValue As IObserver(Of T)

returnValue = observer.AsObserver()

Type Parameters

T

Parameters

observer
Type: System.IObserver(Of T)
An observer whose identity to hide.

Return Value

Type: System.IObserver(Of T)
An observer that hides the identity of the specified observer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObserver(Of T). When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Show:
© 2014 Microsoft