This method will create a SipService Request for the given contentType and messageBody, 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, _
	
operationId 
As 
String, _
	
userCallback 
As 
AsyncCallback, _
	
state 
As 
Object _
) 
As 
IAsyncResult
C#
protected 
IAsyncResult 
BeginPublishServiceRequest(
	
string 
msgBody,
	
ContentType 
contentType,
	
string 
operationId,
	
AsyncCallback 
userCallback,
	
Object 
state
)
Visual C++
protected:
IAsyncResult^ 
BeginPublishServiceRequest(
	
String^ 
msgBody, 
	
ContentType^ 
contentType, 
	
String^ 
operationId, 
	
AsyncCallback^ 
userCallback, 
	
Object^ 
state
)
JavaScript
function 
beginPublishServiceRequest(
msgBody, 
contentType, 
operationId, 
userCallback, 
state);

Parameters

msgBody
Type: String
Message body on service request.
contentType
Type: ContentType
Content type header.
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