138 references to Exists
ComSvcConfig (7)
AtomicFile.cs (3)
55this.originalFileExists = File.Exists(this.originalFileName); 176if ((this.backupOfOriginalFileName != null) && File.Exists(this.backupOfOriginalFileName)) 194if ((!string.IsNullOrEmpty(fileName)) && File.Exists(fileName))
EndpointConfigContainer.cs (1)
758if (!File.Exists(fileName))
SvcFileManager.cs (3)
181if (File.Exists(fileName + ".svc")) 185while (File.Exists(fileName + "." + count.ToString(CultureInfo.InvariantCulture) + ".svc")) 230if (!File.Exists(fileName))
Microsoft.Activities.Build (3)
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (1)
40if (string.Equals(this.buildContext.Language, "VB", StringComparison.OrdinalIgnoreCase) && File.Exists(deferredValidationErrorsFilePath))
Microsoft\Activities\Build\Validation\DeferredValidationTask.cs (1)
36if (File.Exists(this.DeferredValidationErrorsFilePath))
Microsoft\Activities\Build\Validation\ReportDeferredValidationErrorsTask.cs (1)
36if (File.Exists(this.DeferredValidationErrorsFilePath))
mscorlib (5)
system\reflection\emit\assemblybuilder.cs (1)
1543if (File.Exists(strFullFileName) == false)
system\resources\filebasedresourcegroveler.cs (3)
89if (defaultResPath == null || !File.Exists(defaultResPath)) 127if (File.Exists(path)) 143if (File.Exists(fileName))
system\security\cryptography\cryptoconfig.cs (1)
918if (!File.Exists(machineConfigFile))
PresentationBuildTasks (5)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
316if (!File.Exists(TaskHelper.CreateFullFilePath(strFileName, SourceDir)))
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
391if (File.Exists(fileName))
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (1)
259fileExists = File.Exists(fileName);
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
496if (!String.IsNullOrEmpty(assemblyFullPath) && File.Exists(assemblyFullPath))
Framework\System\Windows\Markup\XmlnsCache.cs (1)
128if (!String.IsNullOrEmpty(assemblyFullPath) && File.Exists(assemblyFullPath))
PresentationFramework (5)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1240fileExists = File.Exists(tempPath); 1662if (!GetOption(NativeMethods.OFN_FILEMUSTEXIST) || File.Exists(s.ToString()))
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
279fExist = File.Exists(Path.GetFullPath(fileName));
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
507if (!File.Exists(lexiconFilePath))
src\Framework\System\Windows\Standard\Verify.cs (1)
282if (!File.Exists(filePath))
SMSvcHost (1)
System\ServiceModel\Activation\SMSvcHost.cs (1)
49isWebhostSupported = File.Exists(ListenerAdapterNativeLibrary);
System (10)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
3482if (File.Exists(symbFileName)) 3629if (File.Exists(fullname)) {
compmod\system\codedom\compiler\CodeCompiler.cs (1)
159if (File.Exists(fullname)) {
compmod\system\componentmodel\LicFileLicenseProvider.cs (1)
81if (File.Exists(licenseFile)) {
net\System\Net\Configuration\UriSectionReader.cs (1)
63if (File.Exists(configFilePath))
net\System\Net\mail\SmtpClient.cs (1)
403if (!File.Exists(pathAndFilename))
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
435if (!File.Exists(zlibDllPath))
services\monitoring\system\diagnosticts\FileVersionInfo.cs (1)
432if (!File.Exists(fileName)) {
sys\system\configuration\LocalFileSettingsProvider.cs (1)
354if (File.Exists(file)) {
sys\system\configuration\NameValueFileSectionHandler.cs (1)
48if (File.Exists(sourceFileFullPath)) {
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompilerHelper.cs (1)
28if (!File.Exists(sourceXamlFileName))
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
44if ((LocalAssemblyName != null) && LocalAssemblyName.CodeBase != null && (File.Exists(new Uri(LocalAssemblyName.CodeBase).LocalPath)))
System.AddIn (13)
System\Addin\Hosting\AddInProcess.cs (1)
118if(!File.Exists(_pathToAddInProcess))
System\Addin\Hosting\AddInStore.cs (5)
98if (!File.Exists(deploymentStore) || PipelineStoreIsOutOfDate(deploymentStore, pipelineRootFolderPath)) { 210if (!consistent && File.Exists(addInStore)) { 248if (!File.Exists(addInStore) || AddInStoreIsOutOfDate(addInsPath)) { 406if (!consistent && File.Exists(deploymentStore)) { 1078if (!File.Exists(storeFileName))
System\Addin\Hosting\AddInToken.cs (1)
355if (File.Exists(Path.Combine(location, fileName)))
System\Addin\Hosting\InspectionWorker.cs (2)
133if (File.Exists(dllName)) 135else if (File.Exists(simpleFileName + ".exe"))
System\Addin\Hosting\Utils.cs (2)
229if (File.Exists(dllName)) 231else if (File.Exists(simpleFileName + ".exe"))
System\Addin\MiniReflection\MiniAssembly.cs (2)
203if (File.Exists(fileName)) 207if (File.Exists(fileName))
System.Configuration (5)
System\Configuration\AppSettingsSection.cs (1)
123if (System.IO.File.Exists(sourceFileFullPath)) {
System\Configuration\ConfigurationFileMap.cs (1)
32if (!File.Exists(machineConfigFilename))
System\Configuration\Internal\InternalConfigHost.cs (1)
238if (File.Exists(streamName)) {
System\Configuration\Internal\WriteFileContext.cs (2)
72if ( File.Exists( filename ) ) { 209File.Exists( Target ) &&
System.Core (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
147bool existed = File.Exists(path);
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
44if ((LocalAssemblyName != null) && LocalAssemblyName.CodeBase != null && (File.Exists(new Uri(LocalAssemblyName.CodeBase).LocalPath)))
System.Data.Entity (1)
System\Data\Metadata\MetadataArtifactLoader.cs (1)
104else if (File.Exists(normalizedPath))
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityCodeGenerator.cs (2)
250if (!File.Exists(sourceEdmSchemaFilePath)) 430if (cleanUpTarget && target != null && File.Exists(target))
System.Data.Linq (3)
SqlClient\SqlProvider.cs (3)
543if (!File.Exists(this.dbName)) { 583if (File.Exists(this.dbName)) { 754exists = File.Exists(this.dbName);
System.Drawing (3)
commonui\System\Drawing\BitmapSelector.cs (1)
75return File.Exists(newPath) ? newPath : originalPath;
commonui\System\Drawing\Icon.cs (1)
262if (!File.Exists(filePath)) {
commonui\System\Drawing\Image.cs (1)
167if (!File.Exists(filename)) {
System.IdentityModel.Selectors (3)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (3)
251if (!IsSafeFile(v2AndAboveImplementationDll) || !File.Exists(v2RegPath)) 290if (!File.Exists(implDllFullPath)) 299if (!File.Exists(implDllFullPath))
System.IO.Log (1)
System\IO\Log\SimpleFileLog.cs (1)
24if (File.Exists(absolutePath))
System.Management (1)
Instrumentation\SchemaRegistration.cs (1)
224if(File.Exists(PrecompiledAssemblyPath))
System.Runtime.Remoting (3)
channels\http\httpremotinghandler.cs (3)
108if (File.Exists(filename)) 255if (File.Exists(context.Request.PhysicalPath)) 400bool bFileExists = File.Exists(httpRequest.PhysicalPath);
System.Web (33)
Compilation\AssemblyBuilder.cs (3)
650if (!File.Exists(physicalPath)) 693if (File.Exists(compilParams.OutputAssembly)) 1101if (File.Exists(physicalPath)) {
Compilation\BaseCodeDomTreeGenerator.cs (1)
898if (!File.Exists(pragmaFile)) {
Compilation\BuildManager.cs (5)
527if (File.Exists(licAssemblyPath)) { 690Debug.Assert(File.Exists(_webHashFilePath), _webHashFilePath); 2648if (!File.Exists(precompMarkerFile)) 2997if (File.Exists(destPhysicalPath)) { 3400if (!File.Exists(path))
Compilation\BuildResultCache.cs (3)
373if (File.Exists(pdbPath)) { 668return File.Exists(s + dotDelete); 675if (!File.Exists(newName)) {
Compilation\MultiTargetingUtil.cs (1)
276return System.IO.File.Exists(path);
Configuration\BrowserCapabilitiesCodeGenerator.cs (3)
206if (File.Exists(_publicKeyTokenFile)) { 821if (File.Exists(strongNameFile)) { 858if (!File.Exists(filename)) {
Configuration\RemoteWebConfigurationHostServer.cs (3)
48if (File.Exists(fileName)) { 69bool fileExists = File.Exists(fileName); 98for (int iter = 0; File.Exists(tempFile); iter++) { // if it exists, then use a different random name
DataAccess\SqlConnectionHelper.cs (3)
181if (File.Exists(fullFileName)) 193if (!File.Exists(fullFileName)) 236if (!File.Exists(fullFileName)) {
Handlers\AssemblyResourceLoader.cs (1)
167if (File.Exists(resourcePhysicalPath)) {
Hosting\HostingEnvironment.cs (1)
322Debug.Assert(File.Exists(rootWebConfigPath), "File.Exists(rootWebConfigPath)");
Hosting\MapPathBasedVirtualPathProvider.cs (1)
95bool exists = (isFile) ? File.Exists(physicalPath) : Directory.Exists(physicalPath);
Hosting\ProcessHost.cs (2)
1199if (!File.Exists(customLoaderAssemblyPhysicalPath)) { 1210bool webConfigFileExists = File.Exists(webConfigPhysicalPath);
HttpRuntime.cs (1)
1251if (File.Exists(appOfflineFile)) {
Management\regiisutil.cs (1)
377if (!System.IO.File.Exists(fileName))
UI\Util.cs (3)
219Debug.Assert(File.Exists(path), path); 227if (File.Exists(path)) 401if (!File.Exists(path)) return null;
Util\FileUtil.cs (1)
78exists = File.Exists(filename);
System.Web.DataVisualization (3)
WebForm\ChartWebControl.cs (1)
889if (File.Exists(fileName))
WebForm\General\ChartHttpHandler.cs (2)
1601if (File.Exists(settings.Directory + key)) 1721return File.Exists(settings.Directory + key);
System.Web.Entity.Design (1)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
75return File.Exists(newPath) ? newPath : originalPath;
System.Web.Extensions (3)
ClientServices\ConnectivityStatus.cs (1)
38_IsOffline = File.Exists(path);
ClientServices\Providers\ClientData.cs (1)
227if (File.Exists(fileName)) {
ClientServices\Providers\SqlHelper.cs (1)
209bool needToCreateDB = (File.Exists(fileName) == false);
System.Web.Mobile (2)
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (1)
60if(File.Exists(_path))
UI\MobileControls\Design\Util\WebConfigManager.cs (1)
102if(!File.Exists(_path))
System.Web.Services (1)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
50if (File.Exists(physicalPath)) {
System.Windows.Forms (6)
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
75return File.Exists(newPath) ? newPath : originalPath;
winforms\Managed\System\WinForms\FileDialog.cs (1)
691fileExists = File.Exists(fileName);
winforms\Managed\System\WinForms\Help.cs (2)
354if (!File.Exists(localPath)) { 388if (!File.Exists(localPath)) {
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
5363Debug.Assert(File.Exists(fullFileName), "Automation log file does not exist"); 5365if (File.Exists(fullFileName))
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
2746if (File.Exists(imageFilePath))
System.Workflow.ComponentModel (9)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
1353if (File.Exists(tempFile))
AuthoringOM\Compiler\TypeSystem\AssemblyLoader.cs (1)
20if (File.Exists(filePath))
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
94if (File.Exists(path) &&
AuthoringOM\Design\DesignerHelpers.cs (1)
1477if (File.Exists(imageFilePath))
AuthoringOM\Design\Themes.cs (3)
329for (int i = 1; File.Exists(tempThemePath); i++) 354if (File.Exists(themePath)) 469if (themeFilePath != null && File.Exists(themeFilePath))
AuthoringOM\Design\XomlDesignerLoader.cs (2)
239if (File.Exists(layoutFileName)) 469if (rootDesigner == null || !rootDesigner.SupportsLayoutPersistence || !File.Exists(layoutFileName))
WindowsBase (2)
Base\MS\Internal\Verify.cs (1)
121if (!File.Exists(filePath))
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
435if (!File.Exists(zlibDllPath))
WsatUI (2)
Configuration\ETWWsatTraceSession.cs (2)
193if (!File.Exists(logFileName)) 212if (!File.Exists(backupFile2))