共用方式為


ResourceNamePropertyResolver.ResolveName Method

Definition

Overloads

ResolveName(ProvisioningBuildOptions, ProvisionableResource, ResourceNameRequirements)

Resolve a name for the given resource.

ResolveName(ProvisioningContext, Resource, ResourceNameRequirements)

Resolve a name for the given resource.

ResolveName(ProvisioningBuildOptions, ProvisionableResource, ResourceNameRequirements)

Source:
ResourceNamePropertyResolver.cs

Resolve a name for the given resource.

public abstract Azure.Provisioning.BicepValue<string>? ResolveName (Azure.Provisioning.ProvisioningBuildOptions options, Azure.Provisioning.Primitives.ProvisionableResource resource, Azure.Provisioning.Primitives.ResourceNameRequirements requirements);
abstract member ResolveName : Azure.Provisioning.ProvisioningBuildOptions * Azure.Provisioning.Primitives.ProvisionableResource * Azure.Provisioning.Primitives.ResourceNameRequirements -> Azure.Provisioning.BicepValue<string>
Public MustOverride Function ResolveName (options As ProvisioningBuildOptions, resource As ProvisionableResource, requirements As ResourceNameRequirements) As BicepValue(Of String)

Parameters

options
ProvisioningBuildOptions

The build options for this resource.

resource
ProvisionableResource

The resource with an unset Name property.

requirements
ResourceNameRequirements

Requirements to name the resource.

Returns

A name for the resource, if one could be created.

Applies to

ResolveName(ProvisioningContext, Resource, ResourceNameRequirements)

Source:
ResourceNamePropertyResolver.cs

Resolve a name for the given resource.

public abstract Azure.Provisioning.BicepValue<string>? ResolveName (Azure.Provisioning.ProvisioningContext context, Azure.Provisioning.Primitives.Resource resource, Azure.Provisioning.Primitives.ResourceNameRequirements requirements);
abstract member ResolveName : Azure.Provisioning.ProvisioningContext * Azure.Provisioning.Primitives.Resource * Azure.Provisioning.Primitives.ResourceNameRequirements -> Azure.Provisioning.BicepValue<string>
Public MustOverride Function ResolveName (context As ProvisioningContext, resource As Resource, requirements As ResourceNameRequirements) As BicepValue(Of String)

Parameters

context
ProvisioningContext

The provisioning context for this resource.

resource
Resource

The resource with an unset Name property.

requirements
ResourceNameRequirements

Requirements to name the resource.

Returns

A name for the resource, if one could be created.

Applies to