64 references to FileAttributes
mscorlib (16)
system\io\directory.cs (3)
1342
if (((
FileAttributes
)data.fileAttributes &
FileAttributes
.ReparsePoint) != 0)
1392
bool shouldRecurse = (0 == (data.dwFileAttributes & (int)
FileAttributes
.ReparsePoint));
system\io\file.cs (3)
678
public static
FileAttributes
GetAttributes(String path)
693
return (
FileAttributes
) data.fileAttributes;
703
public static void SetAttributes(String path,
FileAttributes
fileAttributes)
system\io\fileinfo.cs (3)
217
return (Attributes &
FileAttributes
.ReadOnly) != 0;
221
Attributes |=
FileAttributes
.ReadOnly;
223
Attributes &= ~
FileAttributes
.ReadOnly;
system\io\filesysteminfo.cs (2)
291
public
FileAttributes
Attributes {
307
return (
FileAttributes
) _data.fileAttributes;
system\io\longpath.cs (3)
709
if (((
FileAttributes
)data.fileAttributes &
FileAttributes
.ReparsePoint) != 0)
772
bool shouldRecurse = (0 == (data.dwFileAttributes & (int)
FileAttributes
.ReparsePoint));
system\resources\resourcewriter.cs (2)
360
File.SetAttributes(tempFile,
FileAttributes
.Temporary |
FileAttributes
.NotContentIndexed);
PresentationFramework (1)
src\Framework\System\Windows\Standard\NativeMethods.cs (1)
2271
public
FileAttributes
dwFileAttributes;
System.Configuration (9)
System\Configuration\FileUtil.cs (2)
27
return (data.fileAttributes & (int)
FileAttributes
.Directory) != (int)
FileAttributes
.Directory;
System\Configuration\Internal\InternalConfigHost.cs (5)
119
(data.fileAttributes & (int)
FileAttributes
.Directory) == 0) {
180
const
FileAttributes
InvalidAttributesForWrite = (
FileAttributes
.ReadOnly |
FileAttributes
.Hidden);
240
FileAttributes
attrs = fi.Attributes;
System\Configuration\Internal\WriteFileContext.cs (2)
106
FileAttributes
attributes;
140
FileAttributes
fileAttributes;
System.Web (27)
Configuration\BrowserCapabilitiesCodeGenerator.cs (4)
538
if ((allBrowserSubDirectories[i].Attributes &
FileAttributes
.Hidden) !=
FileAttributes
.Hidden) {
663
if ((directory.Attributes &
FileAttributes
.Hidden) ==
FileAttributes
.Hidden) {
Configuration\RemoteWebConfigurationHostServer.cs (6)
71
FileAttributes
fileAttributes =
FileAttributes
.Normal;
91
if (((int)(fileAttributes & (
FileAttributes
.ReadOnly |
FileAttributes
.Hidden))) != 0)
250
if (UnsafeNativeMethods.GetFileAttributesEx(name, UnsafeNativeMethods.GetFileExInfoStandard, out data) && (data.fileAttributes & (int)
FileAttributes
.Directory) == 0) {
271
FileAttributes
attributes;
FileChangesMonitor.cs (5)
670
&& (ffd.FileAttributesData.FileAttributes &
FileAttributes
.Directory) != 0) {
1126
if (fad != null && ((fad.FileAttributes &
FileAttributes
.Directory) != 0)) {
1599
if (hr != HResults.S_OK || (fad.FileAttributes &
FileAttributes
.Directory) == 0) {
1616
if (hr == HResults.S_OK && (fad.FileAttributes &
FileAttributes
.Directory) == 0) {
1636
if (hr == HResults.S_OK && (fad.FileAttributes &
FileAttributes
.Directory) == 0) {
StaticFileHandler.cs (2)
116
if ((((int)fileInfo.Attributes) & ((int)
FileAttributes
.Hidden)) != 0) {
125
if ((((int)fileInfo.Attributes) & ((int)
FileAttributes
.Directory)) != 0) {
UI\Util.cs (3)
455
FileAttributes
attribs = File.GetAttributes(path);
456
if ((attribs &
FileAttributes
.ReadOnly) != 0) {
457
File.SetAttributes(path, attribs & ~
FileAttributes
.ReadOnly);
Util\FileUtil.cs (7)
363
isDirectory = ((data.fileAttributes & (int)
FileAttributes
.Directory) == (int)
FileAttributes
.Directory);
396
return (data.fileAttributes & (int)
FileAttributes
.Directory) == (int)
FileAttributes
.Directory;
570
internal readonly
FileAttributes
FileAttributes;
602
FileAttributes = (
FileAttributes
) data.fileAttributes;
610
FileAttributes = (
FileAttributes
) wfd.dwFileAttributes;
System.Web.Mobile (5)
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (5)
49
FileAttributes
fa = File.GetAttributes(_path);
50
File.SetAttributes(_path, fa & ~
FileAttributes
.ReadOnly);
58
FileAttributes
fa;
63
File.SetAttributes(_path, fa & ~
FileAttributes
.ReadOnly);
70
File.SetAttributes(_path, fa |
FileAttributes
.ReadOnly);
System.Web.Services (4)
System\Web\Services\Discovery\DynamicDiscoSearcher.cs (1)
150
if ((file.Attributes &
FileAttributes
.Directory) == 0) {
System\Web\Services\Discovery\DynamicPhysicalDiscoSearcher.cs (3)
66
if ( 0 != (directory.Attributes & (
FileAttributes
.Hidden |
FileAttributes
.System |
FileAttributes
.Temporary))) {
WindowsBase (2)
Base\MS\Internal\Interop\NativeStructs.cs (1)
158
public
FileAttributes
dwFileAttributes;
Base\MS\Internal\IO\Zip\ZipArchive.cs (1)
81
if (fileInfo.Exists && fileInfo.Length == 0 && (fileInfo.Attributes &
FileAttributes
.ReparsePoint) == 0)