Request.Clone Method

Definition

Overloads

Clone()

Creates a new request based on this request.

Clone(String)

Creates a new request based on this request with the specified target URI.

Clone()

Creates a new request based on this request.

public:
 Microsoft::Rtc::Sip::Request ^ Clone();
public Microsoft.Rtc.Sip.Request Clone ();
Public Function Clone () As Request

Returns

Returns a System.Object that contains the clone of the request. The clone should be subsequently cast as Request to obtain functionality.

Remarks

The clone is not perfect. Some system-level properties such as the VIA header are not cloned, because the new request takes on a new identity.

Applies to

Clone(String)

Creates a new request based on this request with the specified target URI.

public:
 Microsoft::Rtc::Sip::Request ^ Clone(System::String ^ targetUri);
public Microsoft.Rtc.Sip.Request Clone (string targetUri);
Public Function Clone (targetUri As String) As Request

Parameters

targetUri
String

Returns

Remarks

The clone is not perfect. Some system-level properties such as the VIA header are not cloned, because the new request takes on a new identity.

Applies to