Initiates a transfer request to the remote
participant.
Namespace:
Microsoft.Rtc.Collaboration.AudioVideo
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
Public
Function
BeginTransfer ( _
targetUri
As
String, _
callTransferOptions
As
CallTransferOptions, _
userCallback
As
AsyncCallback, _
state
As
Object _
)
As
IAsyncResult
|
C# |
public
IAsyncResult
BeginTransfer(
string
targetUri,
CallTransferOptions
callTransferOptions,
AsyncCallback
userCallback,
Object
state
)
|
Visual C++ |
public:
IAsyncResult^
BeginTransfer(
String^
targetUri,
CallTransferOptions^
callTransferOptions,
AsyncCallback^
userCallback,
Object^
state
)
|
JavaScript |
function
beginTransfer(
targetUri,
callTransferOptions,
userCallback,
state);
|
Parameters
-
targetUri
- Type:
String
The transfer target URI.
-
callTransferOptions
- Type:
Microsoft.Rtc.Collaboration
.
.
::
.
CallTransferOptions
Call transfer options. This parameter can be null.
-
userCallback
- Type:
AsyncCallback
The method to be called when the asynchronous operation is
completed.
-
state
- Type:
Object
A user-provided object that distinguishes this particular
asynchronous operation from other asynchronous operations.
Return Value
An IAsyncResult that
references the asynchronous operation.
Remarks
Exceptions
Exception |
Condition |
ArgumentNullException
|
Thrown when the
target>value is null. |
ArgumentException
|
Thrown when the
callTransferOptions>parameter is
specified with unsupported headers or is used to override
transferor value by any endpoint other than an
Application Endpoint. |
InvalidOperationException
|
Thrown when the current call is not in a valid state to
initiate a transfer operation. |
See Also