Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureDelegatedSubnetResource.WithDelegatedSubnet

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
type AzureDelegatedSubnetResource interface {
// ... omitted for brevity
WithDelegatedSubnet(subnet AzureSubnetResource) AzureDelegatedSubnetResource
}

Signature

methodWithDelegatedSubnetbuilder
Configures the resource to use the specified subnet with appropriate service delegation.
WithDelegatedSubnet(subnet AzureSubnetResource) AzureDelegatedSubnetResource
subnetAzureSubnetResourceThe subnet to associate with the resource.
AzureDelegatedSubnetResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: