How to add RasPreSharedKey
for the entry in c#?
In VB
there is :
Imports DotRas
...
VpnEntry.UpdateCredentials(RasPreSharedKey.Client, PresharedKey)
but in c#
there is no RasPreSharedKey
type...
How to add RasPreSharedKey
for the entry in c#?
In VB
there is :
Imports DotRas
...
VpnEntry.UpdateCredentials(RasPreSharedKey.Client, PresharedKey)
but in c#
there is no RasPreSharedKey
type...
There defenitely is RasPreSharedKey
in DotRas library for C#:
// Type: DotRas.RasPreSharedKey
// Assembly: DotRas, Version=1.3.5166.33433, Culture=neutral, PublicKeyToken=b378f04384b7892a
// MVID: 2B7681AE-B8A5-4283-B263-4CFBA2B063B1
// Assembly location: C:\Program Files (x86)\DotRas SDKs\v1.3\Libraries\NET40\WIN2K8\DotRas.dll
namespace DotRas
{
/// <summary>
/// Defines the pre-shared keys.
///
/// </summary>
///
/// <remarks>
///
/// <para>
/// <b>Known Limitations:</b>
/// <list type="bullet">
///
/// <item>
/// This type is only available on Windows XP and later operating systems.
/// </item>
///
/// </list>
///
/// </para>
///
/// </remarks>
public enum RasPreSharedKey
{
Client,
Server,
Ddm,
}
What kind of error do you have?