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. If null, the file will be created as an empty file.

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)

Applies to