







Contains the result of a Point-to-Point (PPP) 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 RasPppInfo |
Visual Basic |
---|
<SerializableAttribute> Public NotInheritable Class RasPppInfo |
Visual C++ |
---|
[SerializableAttribute] public ref class RasPppInfo sealed |
F# |
---|
[<SealedAttribute>] [<SerializableAttribute>] type RasPppInfo = class end |
Remarks
This object is created from a Ppp projection operation on a connection.
Known Limitations:
- This type is only available on Windows 7 and later operating systems.
Examples
This example shows how to perform a PPP projection operation on an active connection.
C# | ![]() |
---|---|
RasConnection connection = RasConnection.GetActiveConnectionByName("My Connection", @"C:\Test.pbk"); if (connection != null) { RasPppInfo info = (RasPppInfo)connection.GetProjectionInfo(RasProjectionType.Ppp); if (info != null) { // info now contains the PPP projection data. } } |
Visual Basic | ![]() |
---|---|
Dim connection As RasConnection = RasConnection.GetActiveConnectionByName("My Connection", "C:\Test.pbk") If connection IsNot Nothing Then Dim info As RasPppInfo = CType(connection.GetProjectionInfo(RasProjectionType.Ppp), RasPppInfo) If info IsNot Nothing Then ' info now contains the PPP projection data. End If End If |