语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmNetworkModelFactory.VirtualNetworkAddressSpace Method

Definition

AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.

public static Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace VirtualNetworkAddressSpace(System.Collections.Generic.IEnumerable<string> addressPrefixes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.IpamPoolPrefixAllocation> ipamPoolPrefixAllocations = default);
static member VirtualNetworkAddressSpace : seq<string> * seq<Azure.ResourceManager.Network.Models.IpamPoolPrefixAllocation> -> Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace
Public Shared Function VirtualNetworkAddressSpace (Optional addressPrefixes As IEnumerable(Of String) = Nothing, Optional ipamPoolPrefixAllocations As IEnumerable(Of IpamPoolPrefixAllocation) = Nothing) As VirtualNetworkAddressSpace

Parameters

addressPrefixes
IEnumerable<String>
ipamPoolPrefixAllocations
IEnumerable<IpamPoolPrefixAllocation>

Returns

A new VirtualNetworkAddressSpace instance for mocking.

Applies to