Sdílet prostřednictvím


ArmNetworkModelFactory.NetworkIntentPolicy Method

Definition

Initializes a new instance of NetworkIntentPolicy.

public static Azure.ResourceManager.Network.Models.NetworkIntentPolicy NetworkIntentPolicy (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ETag? etag = default);
static member NetworkIntentPolicy : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.ETag> -> Azure.ResourceManager.Network.Models.NetworkIntentPolicy
Public Shared Function NetworkIntentPolicy (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As NetworkIntentPolicy

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

location
Nullable<AzureLocation>

Resource location.

tags
IDictionary<String,String>

Resource tags.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

Returns

A new NetworkIntentPolicy instance for mocking.

Applies to