This method will create a SipService Request
for the given contentType, messageBody and additional custom
headers. Service operations started with this method should be
completed by calling the EndPublishServiceRequest method.
Namespace:
Microsoft.Rtc.Collaboration.Presence
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
Protected
Function
BeginPublishServiceRequest ( _
msgBody
As
String, _
contentType
As
ContentType, _
acceptedHeaders
As
IEnumerable(
Of
SignalingHeader), _
operationId
As
String, _
userCallback
As
AsyncCallback, _
state
As
Object _
)
As
IAsyncResult
|
C# |
protected
IAsyncResult
BeginPublishServiceRequest(
string
msgBody,
ContentType
contentType,
IEnumerable<
SignalingHeader>
acceptedHeaders,
string
operationId,
AsyncCallback
userCallback,
Object
state
)
|
Visual C++ |
protected:
IAsyncResult^
BeginPublishServiceRequest(
String^
msgBody,
ContentType^
contentType,
IEnumerable<
SignalingHeader^>^
acceptedHeaders,
String^
operationId,
AsyncCallback^
userCallback,
Object^
state
)
|
JavaScript |
function
beginPublishServiceRequest(
msgBody,
contentType,
acceptedHeaders,
operationId,
userCallback,
state);
|
Parameters
-
msgBody
- Type:
String
Message body on service request.
-
contentType
- Type:
ContentType
Content type header.
-
acceptedHeaders
- Type:
IEnumerable
<
(Of
<
(
SignalingHeader
>
)
>
)
Extension headers to be included in the service request.
-
operationId
- Type:
String
Operation identifier for the publish operation.
-
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.
See Also