Attaches a PhoneCallListener object to the given call.
| C# | Visual Basic | Visual C++ |
public static ICall AttachListener( this ICall call, IPhoneCallListener listener )
<ExtensionAttribute> _ Public Shared Function AttachListener ( _ call As ICall, _ listener As IPhoneCallListener _ ) As ICall
[ExtensionAttribute] public: static ICall^ AttachListener( ICall^ call, IPhoneCallListener^ listener )
- call (ICall)
- The call to observe.
- listener (IPhoneCallListener)
- The listener.
The call itself.
In Visual Basic and C#, you can call this method as an instance method on any object of type ICall. When you use instance method syntax to call this method, omit the first parameter.
Attaches all listener function to events of IPhoneCall object properly.