C# 在c中添加RasPreSharedKey值#

C# 在c中添加RasPreSharedKey值#,c#,ras,C#,Ras,如何为c#中的条目添加RasPreSharedKey? 在VB中 有: Imports DotRas ... VpnEntry.UpdateCredentials(RasPreSharedKey.Client, PresharedKey) 但是在c中# 在C#的DotRas库中没有RasPreSharedKeytype…防御性地存在RasPreSharedKey: //类型:DotRas.RasPreSharedKey //程序集:DotRas,版本=1.3.5166.33433,区域性=中性

如何为c#中的条目添加
RasPreSharedKey
? 在VB中 有:

Imports DotRas
...
VpnEntry.UpdateCredentials(RasPreSharedKey.Client, PresharedKey)
但是在c中#
在C#的DotRas库中没有
RasPreSharedKey
type…

防御性地存在
RasPreSharedKey

//类型:DotRas.RasPreSharedKey
//程序集:DotRas,版本=1.3.5166.33433,区域性=中性,PublicKeyToken=b378f04384b7892a
//MVID:2B7681AE-B8A5-4283-B263-4CFBA2B063B1
//程序集位置:C:\Program Files(x86)\DotRas SDK\v1.3\Libraries\NET40\WIN2K8\DotRas.dll
名称空间点
{
/// 
///定义预共享密钥。
/// 
/// 
/// 
/// 
/// 
/// 
///已知的限制:
/// 
/// 
/// 
///此类型仅在Windows XP和更高版本的操作系统上可用。
/// 
/// 
/// 
/// 
/// 
/// 
/// 
公共枚举RasPreSharedKey
{
客户
服务器
Ddm,
}
你有什么样的错误

// 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,
  }