File Class

Assembly
Pri.LongPath.dll
Namespace
Pri.LongPath
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["File"] class Type type-node

Syntax

public static class File

Methods

Name Value Summary
AppendAllLines(string, IEnumerable<string>) void
static
AppendAllLines(string, IEnumerable<string>, Encoding) void
static
AppendAllText(string, string) void
static
AppendAllText(string, string, Encoding) void
static
AppendText(string) StreamWriter
static
Copy(string, string) void
static
Copy(string, string, bool) void
static
Create(string) FileStream
static
Create(string, int) FileStream
static
Create(string, int, FileOptions) FileStream
static
Create(string, int, FileOptions, FileSecurity) FileStream
static
CreateText(string) StreamWriter
static
Decrypt(string) void
static
Delete(string) void
static
Encrypt(string) void
static
Exists(string) bool
static
GetAccessControl(string) FileSecurity
static
GetAccessControl(string, AccessControlSections) FileSecurity
static
GetAttributes(string) FileAttributes
static
GetCreationTime(string) DateTime
static
GetCreationTimeUtc(string) DateTime
static
GetLastAccessTime(string) DateTime
static
GetLastAccessTimeUtc(string) DateTime
static
GetLastWriteTime(string) DateTime
static
GetLastWriteTimeUtc(string) DateTime
static
Move(string, string) void
static
Open(string, FileMode) FileStream
static
Open(string, FileMode, FileAccess) FileStream
static
Open(string, FileMode, FileAccess, FileShare) FileStream
static
OpenRead(string) FileStream
static
OpenText(string) StreamReader
static
OpenWrite(string) FileStream
static
ReadAllBytes(string) byte[]
static
ReadAllLines(string) string[]
static
ReadAllLines(string, Encoding) string[]
static
ReadAllText(string) string
static
ReadAllText(string, Encoding) string
static
ReadLines(string) IEnumerable<string>
static
ReadLines(string, Encoding) IEnumerable<string>
static
Replace(string, string, string) void
static
Replace(string, string, string, bool) void
static
SetAccessControl(string, FileSecurity) void
static
SetAttributes(string, FileAttributes) void
static
SetCreationTime(string, DateTime) void
static
SetCreationTimeUtc(string, DateTime) void
static
SetLastAccessTime(string, DateTime) void
static
SetLastAccessTimeUtc(string, DateTime) void
static
SetLastWriteTime(string, DateTime) void
static
SetLastWriteTimeUtc(string, DateTime) void
static
WriteAllBytes(string, byte[]) void
static
WriteAllLines(string, IEnumerable<string>) void
static
WriteAllLines(string, IEnumerable<string>, Encoding) void
static
WriteAllLines(string, string[]) void
static
WriteAllLines(string, string[], Encoding) void
static
WriteAllText(string, string) void
static
WriteAllText(string, string, Encoding) void
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin