Skip to content
Docs Try Aspire

AzureSubnetResource Constructors

Class Constructors 2 members
Represents an Azure Subnet resource.
Constructor(string, string, string, AzureVirtualNetworkResource) Section titled Constructor(string, string, string, AzureVirtualNetworkResource)
Initializes a new instance of the AzureSubnetResource class.
public class AzureSubnetResource
{
public AzureSubnetResource(
string name,
string subnetName,
string addressPrefix,
AzureVirtualNetworkResource parent)
{
// ...
}
}
name string The name of the resource.
subnetName string The subnet name.
addressPrefix string The address prefix for the subnet.
parent AzureVirtualNetworkResource The parent Virtual Network resource.
Constructor(string, string, ParameterResource, AzureVirtualNetworkResource) Section titled Constructor(string, string, ParameterResource, AzureVirtualNetworkResource)
Initializes a new instance of the AzureSubnetResource class with a parameterized address prefix.
public class AzureSubnetResource
{
public AzureSubnetResource(
string name,
string subnetName,
ParameterResource addressPrefix,
AzureVirtualNetworkResource parent)
{
// ...
}
}
name string The name of the resource.
subnetName string The subnet name.
addressPrefix ParameterResource The parameter resource containing the address prefix for the subnet.
parent AzureVirtualNetworkResource The parent Virtual Network resource.