RasLcpInfo Class

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Contains the result of a Link Control Protocol (LCP) multilink projection operation. This class cannot be inherited.

Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
[SerializableAttribute]
public sealed class RasLcpInfo
Visual Basic
<SerializableAttribute>
Public NotInheritable Class RasLcpInfo
Visual C++
[SerializableAttribute]
public ref class RasLcpInfo sealed
F#
[<SealedAttribute>]
[<SerializableAttribute>]
type RasLcpInfo =  class end

Remarks

This object is created from an Lcp projection operation on a connection.

Examples

This example shows how to perform an LCP projection operation on an active connection.
C# Copy imageCopy
RasConnection connection = RasConnection.GetActiveConnectionByName("My Connection", @"C:\Test.pbk");
if (connection != null)
{
    RasLcpInfo info = (RasLcpInfo)connection.GetProjectionInfo(RasProjectionType.Lcp);
    if (info != null)
    {
        // info now contains the LCP projection data.
    }
}
Visual Basic Copy imageCopy
Dim connection As RasConnection = RasConnection.GetActiveConnectionByName("My Connection", "C:\Test.pbk")
If connection IsNot Nothing Then
    Dim info As RasLcpInfo = CType(connection.GetProjectionInfo(RasProjectionType.Lcp), RasLcpInfo)
    If info IsNot Nothing Then
        ' info now contains the LCP projection data.
    End If
End If

Inheritance Hierarchy

System..::..Object
  DotRas..::..RasLcpInfo

See Also