Dela via


ContainerFileBase Class

Definition

Base class for files in the container file system (as compared to directories).

public abstract class ContainerFileBase : Aspire.Hosting.ApplicationModel.ContainerFileSystemItem
type ContainerFileBase = class
    inherit ContainerFileSystemItem
Public MustInherit Class ContainerFileBase
Inherits ContainerFileSystemItem
Inheritance
ContainerFileBase
Derived

Constructors

ContainerFileBase()

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