Udostępnij za pośrednictwem


AzureBicepResource.GetBicepTemplateFile(String, Boolean) Method

Definition

Gets the path to the bicep file. If the template is a string or embedded resource, it will be written to a temporary file.

public virtual Aspire.Hosting.Azure.BicepTemplateFile GetBicepTemplateFile (string? directory = default, bool deleteTemporaryFileOnDispose = true);
abstract member GetBicepTemplateFile : string * bool -> Aspire.Hosting.Azure.BicepTemplateFile
override this.GetBicepTemplateFile : string * bool -> Aspire.Hosting.Azure.BicepTemplateFile
Public Overridable Function GetBicepTemplateFile (Optional directory As String = Nothing, Optional deleteTemporaryFileOnDispose As Boolean = true) As BicepTemplateFile

Parameters

directory
String

The directory where the bicep file will be written to (if it's a temporary file)

deleteTemporaryFileOnDispose
Boolean

A boolean that determines if the file should be deleted on disposal of the BicepTemplateFile.

Returns

A BicepTemplateFile that represents the bicep file.

Exceptions

Applies to