Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    VirtualFileMode Enum

    Namespace: Stride.Core.IO
    Assembly: Stride.Core.IO.dll

    File mode equivalent of System.IO.FileMode.

    public enum VirtualFileMode

    Fields

    Name Description
    Append

    Opens a file if it exists and go at the end, otherwise creates a new file.

    Create

    Creates a new file, always. If a file exists, the function overwrites the file, clears the existing attributes, combines the specified file attributes, and flags with FILE_ATTRIBUTE_ARCHIVE, but does not set the security descriptor that the SECURITY_ATTRIBUTES structure specifies.

    CreateNew

    Creates a new file. The function fails if a specified file exists.

    Open

    Opens a file. The function fails if the file does not exist.

    OpenOrCreate

    Opens a file, always. If a file does not exist, the function creates a file as if dwCreationDisposition is CREATE_NEW.

    Truncate

    Opens a file and truncates it so that its size is 0 (zero) bytes. The function fails if the file does not exist. The calling process must open the file with the GENERIC_WRITE access right.

    Extension Methods

    ComponentBaseExtensions.DisposeBy<VirtualFileMode>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<VirtualFileMode>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation