Share via


ContainerFile Class

Definition

Represents a file in the container file system.

public sealed class ContainerFile : Aspire.Hosting.ApplicationModel.ContainerFileSystemItem
type ContainerFile = class
    inherit ContainerFileSystemItem
Public NotInheritable Class ContainerFile
Inherits ContainerFileSystemItem
Inheritance

Constructors

ContainerFile()

Properties

Contents

The contents of the file. Setting Contents is mutually exclusive with SourcePath. If both are set, an exception will be thrown.

Group

The GID of the group of the file or directory. If set to null, the GID will be inherited from the parent directory or defaults.

(Inherited from ContainerFileSystemItem)
Mode

The permissions of the file or directory. If set to 0, the permissions will be inherited from the parent directory or defaults.

(Inherited from ContainerFileSystemItem)
Name

The name of the file or directory. Must be a simple file or folder name and not include any path separators (eg, / or ). To specify parent folders, use one or more ContainerDirectory entries.

(Inherited from ContainerFileSystemItem)
Owner

The UID of the owner of the file or directory. If set to null, the UID will be inherited from the parent directory or defaults.

(Inherited from ContainerFileSystemItem)
SourcePath

The path to a file on the host system to copy into the container. This path must be absolute and point to a file on the host system. Setting SourcePath is mutually exclusive with Contents. If both are set, an exception will be thrown.

Applies to