Sdílet prostřednictvím


ArmNetworkModelFactory.NetworkInterfaceAssociation Method

Definition

Initializes a new instance of NetworkInterfaceAssociation.

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

Parameters

id
ResourceIdentifier

Network interface ID.

securityRules
IEnumerable<SecurityRuleData>

Collection of custom security rules.

Returns

A new NetworkInterfaceAssociation instance for mocking.

Applies to