Contains the result of an Internet Key Exchange (IKEv2) 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 RasIkeV2Info |
| Visual Basic |
|---|
<SerializableAttribute> Public NotInheritable Class RasIkeV2Info |
| Visual C++ |
|---|
[SerializableAttribute] public ref class RasIkeV2Info sealed |
| F# |
|---|
[<SealedAttribute>] [<SerializableAttribute>] type RasIkeV2Info = class end |
Remarks
This object is created from an IkeV2 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 an IKEv2 projection operation on an active connection.
| C# | Copy |
|---|---|
RasConnection connection = RasConnection.GetActiveConnectionByName("My Connection", @"C:\Test.pbk"); if (connection != null) { RasIkeV2Info info = (RasIkeV2Info)connection.GetProjectionInfo(RasProjectionType.IkeV2); if (info != null) { // info now contains the IKEv2 projection data. } } | |
| Visual Basic | Copy |
|---|---|
Dim connection As RasConnection = RasConnection.GetActiveConnectionByName("My Connection", "C:\Test.pbk") If connection IsNot Nothing Then Dim info As RasIkeV2Info = CType(connection.GetProjectionInfo(RasProjectionType.IkeV2), RasIkeV2Info) If info IsNot Nothing Then ' info now contains the IKEv2 projection data. End If End If | |