次の方法で共有


AzureStorageExtensions.WithDataVolume Method

Definition

Adds a named volume for the data folder to an Azure Storage emulator resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource> WithDataVolume (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource> builder, string? name = default, bool isReadOnly = false);
static member WithDataVolume : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource> * string * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource>
<Extension()>
Public Function WithDataVolume (builder As IResourceBuilder(Of AzureStorageEmulatorResource), Optional name As String = Nothing, Optional isReadOnly As Boolean = false) As IResourceBuilder(Of AzureStorageEmulatorResource)

Parameters

name
String

The name of the volume. Defaults to an auto-generated name based on the application and resource names.

isReadOnly
Boolean

A flag that indicates if this is a read-only volume.

Returns

A builder for the AzureStorageEmulatorResource.

Applies to