Expand Minimize

OpenMode Enumeration

Defines how an item, such as a file, is opened. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As OpenMode

public enum OpenMode
public enum OpenMode
public enum OpenMode

Member nameDescription
AddOpens the item to append content.
NewOpens a new item. An error is thrown if the file exists.
OverwriteOpens an existing item to overwrite its content. If the item does not exist, a new item is created.


Target Platforms

© 2015 Microsoft