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

ProvisionableResource.DefineResource<T> Method

Definition

protected Azure.Provisioning.Primitives.ResourceReference<T> DefineResource<T> (string propertyName, string[]? bicepPath, bool isOutput = false, bool isRequired = false, T? defaultValue = default) where T : Azure.Provisioning.Primitives.ProvisionableResource;
member this.DefineResource : string * string[] * bool * bool * 'T -> Azure.Provisioning.Primitives.ResourceReference<'T (requires 'T :> Azure.Provisioning.Primitives.ProvisionableResource)> (requires 'T :> Azure.Provisioning.Primitives.ProvisionableResource)
Protected Function DefineResource(Of T As ProvisionableResource) (propertyName As String, bicepPath As String(), Optional isOutput As Boolean = false, Optional isRequired As Boolean = false, Optional defaultValue As T = Nothing) As ResourceReference(Of T)

Type Parameters

T

Parameters

propertyName
String
bicepPath
String[]
isOutput
Boolean
isRequired
Boolean
defaultValue
T

Returns

Applies to