Share via


BeginPublishServiceRequest Method (String, ContentType, IEnumerable(SignalingHeader), String, AsyncCallback, Object)

This method will create a SipService Request for the given contentType, messageBody and additional custom headers.

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'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
'Usage
Dim msgBody As String
Dim contentType As ContentType
Dim acceptedHeaders As IEnumerable(Of SignalingHeader)
Dim operationId As String
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.BeginPublishServiceRequest(msgBody, _
    contentType, acceptedHeaders, operationId, _
    userCallback, state)
protected IAsyncResult BeginPublishServiceRequest(
    string msgBody,
    ContentType contentType,
    IEnumerable<SignalingHeader> acceptedHeaders,
    string operationId,
    AsyncCallback userCallback,
    Object state
)

Parameters

Return Value

Type: System..::..IAsyncResult

Remarks

Service operation started with this method should be completed via calling EndPublishServiceRequest method.

See Also

Reference

PublishSubscribeSession Class

PublishSubscribeSession Members

BeginPublishServiceRequest Overload

Microsoft.Rtc.Collaboration.Presence Namespace