74 references to IsFile
dotnet (1)
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
503
if (Uri.TryCreate(rollbackDefinitionFilePath, UriKind.Absolute, out var rollbackUri) && !rollbackUri.
IsFile
)
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
83
if (Uri.TryCreate(path, UriKind.Absolute, out serviceUri) && !serviceUri.
IsFile
)
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (1)
36
if (!uri.
IsFile
)
Metadata\MetadataDocumentLoader.cs (3)
100
if (metadataUri.
IsFile
)
142
if (!metadataUri.
IsFile
)
522
string fullFileName = schemaUri.
IsFile
? schemaUri.LocalPath : schemaLocation;
Metadata\MetadataFileNameManager.cs (1)
202
return fileUri.
IsFile
;
Shared\Options\OptionValueParser.cs (1)
110
value = (uri.IsAbsoluteUri && uri.
IsFile
? uri.LocalPath : uri.OriginalString).Replace("\\", "/");
Shared\Options\UpdateOptions.cs (1)
101
if (input.IsAbsoluteUri && input.
IsFile
&& PathHelper.GetRelativePath(input.LocalPath, optionsFileDirectory, out relPath))
Shared\Utilities\PathHelper.cs (1)
77
return fileUri.IsAbsoluteUri && fileUri.
IsFile
|| IsFile(fileUri.ToString(), basePath, out fileUri);
Microsoft.AspNetCore.Mvc.Razor (1)
Infrastructure\DefaultFileVersionProvider.cs (1)
48
if (Uri.TryCreate(resolvedPath, UriKind.Absolute, out var uri) && !uri.
IsFile
)
Microsoft.Extensions.DependencyModel (1)
DependencyContextLoader.cs (1)
163
&& codeBase.
IsFile
)
Microsoft.TemplateEngine.Edge (2)
Mount\Archive\ZipFileMountPointFactory.cs (1)
25
if (!uri.
IsFile
)
Mount\FileSystem\FileSystemMountPointFactory.cs (1)
23
if (!uri.
IsFile
)
Microsoft.Web.XmlTransform (1)
XmlTransformationLogger.cs (1)
227
if (uri.
IsFile
&& String.IsNullOrEmpty(uri.Host)) {
NuGet.Commands (1)
CommandRunners\PushRunner.cs (1)
111
&& !sourceUri.
IsFile
NuGet.Common (1)
UriUtility.cs (1)
132
if (absoluteUri?.
IsFile
== true)
NuGet.Configuration (1)
PackageSource\PackageSource.cs (1)
66
_isLocal = uri != null ? uri.
IsFile
: false;
NuGet.PackageManagement (2)
Utility\UriHelper.cs (2)
33
if (url.
IsFile
129
if (currentURI.
IsFile
)
NuGet.Protocol (10)
LocalRepositories\LocalPackageSearchResource.cs (1)
160
if (currentURI.
IsFile
|| currentURI.IsUnc)
Providers\PackageUpdateResourceV3Provider.cs (1)
39
if (!(new Uri(sourceUri)).
IsFile
)
Providers\SymbolPackageUpdateResourceV3Provider.cs (1)
36
if (!(new Uri(sourceUri)).
IsFile
)
Resources\PackageUpdateResource.cs (5)
233
if (string.IsNullOrEmpty(apiKey) && !symbolSourceUri.
IsFile
)
288
if (string.IsNullOrEmpty(apiKey) && !packageSourceUri.
IsFile
)
324
if (string.IsNullOrEmpty(apiKey) && !symbolSourceUri.
IsFile
)
373
if (sourceUri.
IsFile
)
735
if (sourceUri.
IsFile
)
Utility\LocalFolderUtility.cs (1)
816
if (uriResult?.IsAbsoluteUri == true && !uriResult.
IsFile
)
Utility\OfflineFeedUtility.cs (1)
105
if (!pathUri.
IsFile
&& !pathUri.IsUnc)
PresentationCore (17)
MS\Internal\FontCache\FontCacheUtil.cs (3)
478
return absoluteUri.
IsFile
;
548
if (fontLocation.
IsFile
)
579
return !fontLocation.IsAbsoluteUri || !fontLocation.
IsFile
|| fontLocation.IsUnc;
MS\Internal\FontCache\FontSource.cs (1)
91
return !_isInternalCompositeFont && _fontUri.
IsFile
;
MS\Internal\FontCache\FontSourceCollection.cs (2)
68
if (_uri.
IsFile
)
86
if (_uri.
IsFile
)
MS\Internal\Text\TextInterface\Factory.cs (1)
335
return uri.
IsFile
&& uri.IsLoopback && !uri.IsUnc;
MS\Internal\WpfWebRequestHelper.cs (1)
59
if (uri.
IsFile
)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
110
if (uri.
IsFile
)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
94
if (uri.
IsFile
)
System\IO\Packaging\PackWebResponse.cs (1)
206
if (!_responseStream.CanSeek || !_innerUri.
IsFile
)
System\Windows\Input\CursorConverter.cs (1)
175
if (finalUri.IsAbsoluteUri && finalUri.
IsFile
)
System\Windows\Media\ColorContext.cs (1)
246
Invariant.Assert(uri.
IsFile
);
System\Windows\Media\Effects\PixelShader.cs (1)
87
if (!newUri.
IsFile
&&
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1038
if (uri.
IsFile
)
1047
if (uri.
IsFile
&& uri.IsUnc) // for UNC
System\Windows\Media\MediaPlayerState.cs (1)
864
if (absoluteUri.
IsFile
)
PresentationFramework (3)
MS\Internal\AppModel\AppSecurityManager.cs (1)
74
destinationUri.
IsFile
;
System\Windows\Controls\CustomDictionarySources.cs (1)
342
if (!(item.IsUnc || item.
IsFile
|| MS.Internal.IO.Packaging.PackUriHelper.IsPackUri(item)))
System\Windows\Documents\Speller.cs (1)
325
if (!uri.IsAbsoluteUri || uri.
IsFile
)
PresentationUI (3)
MS\Internal\Documents\Application\DocumentProperties.cs (1)
339
if (_uri.
IsFile
)
MS\Internal\Documents\Application\DocumentStream.cs (2)
401
if ((_xpsFileToken == null) || (!_xpsFileToken.Location.
IsFile
))
971
if (!location.
IsFile
)
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
93
if (externalConfigUri.
IsFile
)
System.Diagnostics.Process (1)
System\Diagnostics\ProcessUtils.Unix.cs (1)
221
if (uri.
IsFile
&& uri.Host == "" && File.Exists(uri.LocalPath))
System.Private.Uri (1)
System\Uri.cs (1)
1548
if (
IsFile
)
System.Private.Xml (1)
System\Xml\Xsl\SourceLineInfo.cs (1)
89
uri.
IsFile
System.Speech (4)
Internal\ResourceLoader.cs (1)
24
if (!uri.IsAbsoluteUri || uri.
IsFile
)
Internal\SrgsCompiler\SRGSCompiler.cs (1)
49
if (uri != null && (!uri.IsAbsoluteUri || uri.
IsFile
))
Internal\SrgsParser\XmlParser.cs (1)
48
_filename = !uri.IsAbsoluteUri || !uri.
IsFile
? uri.OriginalString : uri.LocalPath;
Recognition\Grammar.cs (1)
423
if (uriGrammar!.
IsFile
)
System.Windows.Extensions (7)
System\Media\SoundPlayer.cs (7)
137
if (_uri != null && _uri.
IsFile
)
189
if (_uri != null && _uri.
IsFile
)
214
if (_uri != null && _uri.
IsFile
)
246
Debug.Assert((_uri == null || !_uri.
IsFile
), "we only load streams");
263
if (_uri != null && !_uri.
IsFile
&& _stream == null)
396
if (!_uri.
IsFile
)
488
if (_uri != null && !_uri.
IsFile
&& _stream == null)
System.Windows.Forms (6)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
472
if (uri.
IsFile
)
557
if (uri.
IsFile
)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1294
urlString = url.
IsFile
? url.OriginalString : url.AbsoluteUri;
System\Windows\Forms\Help\Help.cs (3)
118
if (file is null || file.
IsFile
)
120
string? localPath = (file is not null && file.
IsFile
) ? file.LocalPath : url;
216
string? executable = file.
IsFile
? FindExecutableInternal(file.LocalPath.ToString()) : null;