AzureConstructResourceExtensions.AssignProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AssignProperty<T>(Resource<T>, Expression<Func<T,Object>>, IResourceBuilder<ParameterResource>, String) |
Assigns an Aspire parameter resource to an Azure construct resource. |
AssignProperty<T>(Resource<T>, Expression<Func<T,Object>>, BicepOutputReference, String) |
Assigns an Aspire Bicep output reference to an Azure construct resource. |
AssignProperty<T>(Resource<T>, Expression<Func<T,Object>>, IResourceBuilder<ParameterResource>, String)
- Source:
- AzureConstructResource.cs
Assigns an Aspire parameter resource to an Azure construct resource.
public static void AssignProperty<T> (this Azure.Provisioning.Resource<T> resource, System.Linq.Expressions.Expression<Func<T,object?>> propertySelector, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> parameterResourceBuilder, string? parameterName = default);
static member AssignProperty : Azure.Provisioning.Resource<'T> * System.Linq.Expressions.Expression<Func<'T, obj>> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> * string -> unit
<Extension()>
Public Sub AssignProperty(Of T) (resource As Resource(Of T), propertySelector As Expression(Of Func(Of T, Object)), parameterResourceBuilder As IResourceBuilder(Of ParameterResource), Optional parameterName As String = Nothing)
Type Parameters
- T
Type of the CDK resource.
Parameters
- resource
- Azure.Provisioning.Resource<T>
The CDK resource.
- propertySelector
- Expression<Func<T,Object>>
Property selection expression.
- parameterResourceBuilder
- IResourceBuilder<ParameterResource>
Aspire parameter resource builder.
- parameterName
- String
The name of the parameter to be assigned.
Applies to
AssignProperty<T>(Resource<T>, Expression<Func<T,Object>>, BicepOutputReference, String)
- Source:
- AzureConstructResource.cs
Assigns an Aspire Bicep output reference to an Azure construct resource.
public static void AssignProperty<T> (this Azure.Provisioning.Resource<T> resource, System.Linq.Expressions.Expression<Func<T,object?>> propertySelector, Aspire.Hosting.Azure.BicepOutputReference outputReference, string? parameterName = default);
static member AssignProperty : Azure.Provisioning.Resource<'T> * System.Linq.Expressions.Expression<Func<'T, obj>> * Aspire.Hosting.Azure.BicepOutputReference * string -> unit
<Extension()>
Public Sub AssignProperty(Of T) (resource As Resource(Of T), propertySelector As Expression(Of Func(Of T, Object)), outputReference As BicepOutputReference, Optional parameterName As String = Nothing)
Type Parameters
- T
Type of the CDK resource.
Parameters
- resource
- Azure.Provisioning.Resource<T>
The CDK resource.
- propertySelector
- Expression<Func<T,Object>>
Property selection expression.
- outputReference
- BicepOutputReference
Aspire parameter resource builder.
- parameterName
- String
The name of the parameter to be assigned.