共用方式為


AzureSqlServerResource Constructors

Definition

Overloads

AzureSqlServerResource(SqlServerServerResource, Action<AzureResourceInfrastructure>)
Obsolete.

Initializes a new instance of the AzureSqlServerResource class.

AzureSqlServerResource(SqlServerServerResource, Action<ResourceModuleConstruct>)

Represents an Azure Sql Server resource.

AzureSqlServerResource(String, Action<AzureResourceInfrastructure>)

Initializes a new instance of the AzureSqlServerResource class.

AzureSqlServerResource(SqlServerServerResource, Action<AzureResourceInfrastructure>)

Source:
AzureSqlServerResource.cs

Caution

This method is obsolete and will be removed in a future version. Use AddAzureSqlServer instead to add an Azure SQL server resource.

Initializes a new instance of the AzureSqlServerResource class.

[System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzureSqlServer instead to add an Azure SQL server resource.")]
public AzureSqlServerResource (Aspire.Hosting.ApplicationModel.SqlServerServerResource innerResource, Action<Aspire.Hosting.Azure.AzureResourceInfrastructure> configureInfrastructure);
[<System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzureSqlServer instead to add an Azure SQL server resource.")>]
new Aspire.Hosting.Azure.AzureSqlServerResource : Aspire.Hosting.ApplicationModel.SqlServerServerResource * Action<Aspire.Hosting.Azure.AzureResourceInfrastructure> -> Aspire.Hosting.Azure.AzureSqlServerResource
Public Sub New (innerResource As SqlServerServerResource, configureInfrastructure As Action(Of AzureResourceInfrastructure))

Parameters

innerResource
SqlServerServerResource

The SqlServerServerResource that this resource wraps.

configureInfrastructure
Action<AzureResourceInfrastructure>

Callback to configure the Azure resources.

Attributes

Applies to

AzureSqlServerResource(SqlServerServerResource, Action<ResourceModuleConstruct>)

Source:
AzureSqlServerResource.cs

Represents an Azure Sql Server resource.

public AzureSqlServerResource (Aspire.Hosting.ApplicationModel.SqlServerServerResource innerResource, Action<Aspire.Hosting.ResourceModuleConstruct> configureConstruct);
new Aspire.Hosting.Azure.AzureSqlServerResource : Aspire.Hosting.ApplicationModel.SqlServerServerResource * Action<Aspire.Hosting.ResourceModuleConstruct> -> Aspire.Hosting.Azure.AzureSqlServerResource
Public Sub New (innerResource As SqlServerServerResource, configureConstruct As Action(Of ResourceModuleConstruct))

Parameters

innerResource
SqlServerServerResource

The SqlServerServerResource that this resource wraps.

configureConstruct
Action<ResourceModuleConstruct>

Callback to populate the construct with Azure resources.

Applies to

AzureSqlServerResource(String, Action<AzureResourceInfrastructure>)

Source:
AzureSqlServerResource.cs

Initializes a new instance of the AzureSqlServerResource class.

public AzureSqlServerResource (string name, Action<Aspire.Hosting.Azure.AzureResourceInfrastructure> configureInfrastructure);
new Aspire.Hosting.Azure.AzureSqlServerResource : string * Action<Aspire.Hosting.Azure.AzureResourceInfrastructure> -> Aspire.Hosting.Azure.AzureSqlServerResource
Public Sub New (name As String, configureInfrastructure As Action(Of AzureResourceInfrastructure))

Parameters

name
String

The name of the resource.

configureInfrastructure
Action<AzureResourceInfrastructure>

Callback to configure the Azure resources.

Applies to