Udostępnij za pośrednictwem


ArmNetworkModelFactory.SubnetAssociation Method

Definition

Initializes a new instance of SubnetAssociation.

public static Azure.ResourceManager.Network.Models.SubnetAssociation SubnetAssociation (Azure.Core.ResourceIdentifier id = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.SecurityRuleData> securityRules = default);
static member SubnetAssociation : Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Network.SecurityRuleData> -> Azure.ResourceManager.Network.Models.SubnetAssociation
Public Shared Function SubnetAssociation (Optional id As ResourceIdentifier = Nothing, Optional securityRules As IEnumerable(Of SecurityRuleData) = Nothing) As SubnetAssociation

Parameters

id
ResourceIdentifier

Subnet ID.

securityRules
IEnumerable<SecurityRuleData>

Collection of custom security rules.

Returns

A new SubnetAssociation instance for mocking.

Applies to