54 references to FileSystemRights
mscorlib (44)
system\io\file.cs (2)
233
return new FileStream(path, FileMode.Create,
FileSystemRights
.Read |
FileSystemRights
.Write,
system\io\filestream.cs (18)
564
public FileStream(String path, FileMode mode,
FileSystemRights
rights, FileShare share, int bufferSize, FileOptions options, FileSecurity fileSecurity)
582
public FileStream(String path, FileMode mode,
FileSystemRights
rights, FileShare share, int bufferSize, FileOptions options)
629
FileSystemRights
fileSystemRights = (
FileSystemRights
)rights;
649
else if (useRights && (fileSystemRights <
FileSystemRights
.ReadData || fileSystemRights >
FileSystemRights
.FullControl))
668
|| (useRights && (fileSystemRights &
FileSystemRights
.Write) == 0))
688
if (fileSystemRights ==
FileSystemRights
.Write) {
734
if ((!useRights && (access & FileAccess.Read) != 0) || (useRights && (fileSystemRights &
FileSystemRights
.ReadAndExecute) != 0))
777
|| (useRights && (fileSystemRights & (
FileSystemRights
.Write |
FileSystemRights
.Delete
778
|
FileSystemRights
.DeleteSubdirectoriesAndFiles
779
|
FileSystemRights
.ChangePermissions
780
|
FileSystemRights
.TakeOwnership)) != 0)
781
|| (useRights && ((fileSystemRights &
FileSystemRights
.Synchronize) != 0)
933
_canRead = (fileSystemRights &
FileSystemRights
.ReadData) != 0;
934
_canWrite = ((fileSystemRights &
FileSystemRights
.WriteData) != 0)
935
|| ((fileSystemRights &
FileSystemRights
.AppendData) != 0);
system\security\accesscontrol\filesecurity.cs (24)
81
FileSystemRights
fileSystemRights,
95
FileSystemRights
fileSystemRights,
113
FileSystemRights
fileSystemRights,
129
FileSystemRights
fileSystemRights,
169
public
FileSystemRights
FileSystemRights
183
internal static int AccessMaskFromRights(
FileSystemRights
fileSystemRights, AccessControlType controlType )
185
if (fileSystemRights < (
FileSystemRights
) 0 || fileSystemRights >
FileSystemRights
.FullControl)
190
fileSystemRights |=
FileSystemRights
.Synchronize;
193
if (fileSystemRights !=
FileSystemRights
.FullControl &&
194
fileSystemRights != (
FileSystemRights
.FullControl & ~
FileSystemRights
.DeleteSubdirectoriesAndFiles))
195
fileSystemRights &= ~
FileSystemRights
.Synchronize;
201
internal static
FileSystemRights
RightsFromAccessMask( int accessMask )
203
return (
FileSystemRights
)accessMask;
216
FileSystemRights
fileSystemRights,
229
FileSystemRights
fileSystemRights,
245
FileSystemRights
fileSystemRights,
258
FileSystemRights
fileSystemRights,
293
private static int AccessMaskFromRights(
FileSystemRights
fileSystemRights )
295
if (fileSystemRights < (
FileSystemRights
) 0 || fileSystemRights >
FileSystemRights
.FullControl)
306
public
FileSystemRights
FileSystemRights
612
get { return typeof(System.Security.AccessControl.
FileSystemRights
); }
System.Core (10)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (10)
720
private static
FileSystemRights
GetFileStreamFileSystemRights(MemoryMappedFileAccess access) {
724
return
FileSystemRights
.ReadData;
727
return
FileSystemRights
.ReadData |
FileSystemRights
.WriteData;
730
return
FileSystemRights
.WriteData;
733
return
FileSystemRights
.ReadData |
FileSystemRights
.ExecuteFile;
736
return
FileSystemRights
.ReadData |
FileSystemRights
.WriteData |
FileSystemRights
.ExecuteFile;