Sdílet prostřednictvím


ArmNetworkModelFactory.StaticRoutesConfig Method

Definition

Initializes a new instance of StaticRoutesConfig.

public static Azure.ResourceManager.Network.Models.StaticRoutesConfig StaticRoutesConfig (bool? propagateStaticRoutes = default, Azure.ResourceManager.Network.Models.VnetLocalRouteOverrideCriterion? vnetLocalRouteOverrideCriteria = default);
static member StaticRoutesConfig : Nullable<bool> * Nullable<Azure.ResourceManager.Network.Models.VnetLocalRouteOverrideCriterion> -> Azure.ResourceManager.Network.Models.StaticRoutesConfig
Public Shared Function StaticRoutesConfig (Optional propagateStaticRoutes As Nullable(Of Boolean) = Nothing, Optional vnetLocalRouteOverrideCriteria As Nullable(Of VnetLocalRouteOverrideCriterion) = Nothing) As StaticRoutesConfig

Parameters

propagateStaticRoutes
Nullable<Boolean>

Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.

vnetLocalRouteOverrideCriteria
Nullable<VnetLocalRouteOverrideCriterion>

Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

Returns

A new StaticRoutesConfig instance for mocking.

Applies to