Request.Clone (String)

Request.Clone (String)

The Clone method creates a deep copy of this Request Sip Class object instance with the supplied SIP URI represented as a string.

Syntax

[C#]

public Request Clone(
  String targetUri
);

Syntax

[Visual Basic .NET]

Public Function Clone( _
  ByVal targetUri As String _
) As Request

Parameters

  • targetUri
    Specifies the new SIP URI for the clone, replacing the original.

Return Values

Returns a Request object that contains the clone of the request.

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. This method can be used to create a forked Request object.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

Request.Clone ()

Request Sip Class