Artemis Artemis
Artemis Artemis

Search Results for

    Class WriteBytesToFileAction

    Represents a plugin prerequisite action that copies a folder

    Inheritance
    object
    CorePropertyChanged
    PluginPrerequisiteAction
    WriteBytesToFileAction
    Inherited Members
    PluginPrerequisiteAction.Name
    PluginPrerequisiteAction.Status
    PluginPrerequisiteAction.ProgressIndeterminate
    PluginPrerequisiteAction.SubProgressIndeterminate
    PluginPrerequisiteAction.ShowProgressBar
    PluginPrerequisiteAction.ShowSubProgressBar
    PluginPrerequisiteAction.Progress
    PluginPrerequisiteAction.SubProgress
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public class WriteBytesToFileAction : PluginPrerequisiteAction

    Constructors

    WriteBytesToFileAction(string, string, byte[])

    Creates a new instance of a copy folder action

    Declaration
    public WriteBytesToFileAction(string name, string target, byte[] content)
    Parameters
    Type Name Description
    string name

    The name of the action

    string target

    The target file to write to (will be created if needed)

    byte[] content

    The contents to write

    Properties

    Append

    Gets or sets a boolean indicating whether or not to append to the file if it exists already, if set to false the file will be deleted and recreated

    Declaration
    public bool Append { get; set; }
    Property Value
    Type Description
    bool

    ByteContent

    Gets the bytes that will be written

    Declaration
    public byte[] ByteContent { get; }
    Property Value
    Type Description
    byte[]

    Target

    Gets or sets the target file

    Declaration
    public string Target { get; }
    Property Value
    Type Description
    string

    Methods

    Execute(CancellationToken)

    Called when the action must execute

    Declaration
    public override Task Execute(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    PluginPrerequisiteAction.Execute(CancellationToken)
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.