Share via


Create method of the MSFT_NetRoute class

Create the Route.

Syntax

uint32 Create(
  [in]  uint32        InterfaceIndex,
  [in]  string        InterfaceAlias,
  [in]  string        DestinationPrefix,
  [in]  string        NextHop,
  [in]  uint8         Publish,
  [in]  uint16        RouteMetric,
  [in]  uint16        Protocol,
  [in]  datetime      ValidLifetime,
  [in]  datetime      PreferredLifetime,
  [in]  string        PolicyStore,
  [in]  uint16        AddressFamily,
  [in]  boolean       PassThru,
  [out] MSFT_NetRoute CmdletOutput[]
);

Parameters

InterfaceIndex [in]

TBD

InterfaceAlias [in]

TBD

DestinationPrefix [in]

TBD

NextHop [in]

TBD

Publish [in]

TBD

RouteMetric [in]

TBD

Protocol [in]

TBD

ValidLifetime [in]

TBD

PreferredLifetime [in]

TBD

PolicyStore [in]

TBD

AddressFamily [in]

TBD

PassThru [in]

TBD

CmdletOutput [out]

TBD

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess\Client
MOF
VPNClientPSProvider.mof
DLL
VPNClientPSProvider.dll

See also

MSFT_NetRoute