共用方式為


ArmApiManagementModelFactory.VirtualNetworkConfiguration Method

Definition

Initializes a new instance of VirtualNetworkConfiguration.

public static Azure.ResourceManager.ApiManagement.Models.VirtualNetworkConfiguration VirtualNetworkConfiguration (Guid? vnetId = default, string subnetname = default, Azure.Core.ResourceIdentifier subnetResourceId = default);
static member VirtualNetworkConfiguration : Nullable<Guid> * string * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.ApiManagement.Models.VirtualNetworkConfiguration
Public Shared Function VirtualNetworkConfiguration (Optional vnetId As Nullable(Of Guid) = Nothing, Optional subnetname As String = Nothing, Optional subnetResourceId As ResourceIdentifier = Nothing) As VirtualNetworkConfiguration

Parameters

vnetId
Nullable<Guid>

The virtual network ID. This is typically a GUID. Expect a null GUID by default.

subnetname
String

The name of the subnet.

subnetResourceId
ResourceIdentifier

The full resource ID of a subnet in a virtual network to deploy the API Management service in.

Returns

A new VirtualNetworkConfiguration instance for mocking.

Applies to