267 references to Uri
Accessibility_Core_App (1)
CommonControl2.cs (1)
17webBrowser1.Url = new Uri($"file://{page}", UriKind.Absolute);
Aspire.Dashboard (3)
Model\TargetLocationInterceptor.cs (1)
16var uri = new Uri(originalTargetLocation, UriKind.RelativeOrAbsolute);
src\Shared\IConfigurationExtensions.cs (2)
76return new Uri(uri, UriKind.Absolute); 112.Select(url => new Uri(url, UriKind.Absolute))
Aspire.Dashboard.Tests (2)
Integration\FrontendBrowserTokenAuthTests.cs (2)
207var uri = new Uri((string)GetValue(w.State, "DashboardLoginUrl")!, UriKind.Absolute); 237var uri = new Uri((string)GetValue(loginLinkLog.State, "DashboardLoginUrl")!, UriKind.Absolute);
Aspire.Hosting (4)
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
19return RewriteUrl(new Uri(url, UriKind.Absolute));
ResourceBuilderExtensions.cs (1)
878var baseUri = new Uri(endpoint.Url, UriKind.Absolute);
src\Shared\IConfigurationExtensions.cs (2)
76return new Uri(uri, UriKind.Absolute); 112.Select(url => new Uri(url, UriKind.Absolute))
Aspire.Hosting.Tests (1)
WithReferenceTests.cs (1)
276Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("petstore.swagger.io", UriKind.Relative)));
AuthSamples.FunctionalTests (1)
HttpClientExtensions.cs (1)
45target = new Uri(formaction, UriKind.Relative);
dotnet-svcutil-lib (17)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
1067_validator.BaseUri = (resolver == null) ? new Uri(_outerReader.BaseURI, UriKind.RelativeOrAbsolute) : resolver.ResolveUri(null, _outerReader.BaseURI);
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (4)
207return new Uri(relativeUri, UriKind.Relative); 217return new Uri(relativeUri, UriKind.Relative); 379_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 380_mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (1)
89_schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (1)
54_schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (3)
374Uri schemaUri = new Uri(schemaDocument.BaseURI, UriKind.RelativeOrAbsolute); 951if (FindSchemaByNSAndUrl(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, null) != null) 963if (IsSchemaLoaded(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, out schema))
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (1)
46Uri uri = new Uri(relativeUri, UriKind.RelativeOrAbsolute);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
579return new Uri(str, UriKind.RelativeOrAbsolute);
Metadata\MetadataDocumentLoader.cs (2)
107this.metadataSourceFiles.AddRange(fileInfoList.Select(fi => new Uri(fi.FullName, UriKind.Absolute))); 148this.metadataSourceFiles.AddRange(fileInfoList.Select(fi => new Uri(fi.FullName, UriKind.Absolute)));
Metadata\MetadataFileNameManager.cs (1)
225var baseUri = new Uri(baseUrl, UriKind.RelativeOrAbsolute);
Shared\Options\OptionValueParser.cs (1)
52value = CreateValue<Uri>(() => new Uri(stringValue, UriKind.RelativeOrAbsolute), option, stringValue);
Shared\Options\UpdateOptions.cs (1)
97this.Inputs[idx] = new Uri(relPath, UriKind.Relative);
InMemory.FunctionalTests (1)
RequestTests.cs (1)
245var requestTarget = new Uri(requestUrl, UriKind.Absolute);
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
67_baseUri = new Uri(value!, UriKind.Absolute);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
231{ "/path", new Uri("/path", UriKind.Relative) },
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
374return new Uri(navigationManager.Uri, UriKind.Absolute).PathAndQuery;
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyExtensions.cs (1)
32return new Uri(origin.Replace(_WildcardSubdomain, string.Empty), UriKind.Absolute);
Microsoft.AspNetCore.Cors.Test (2)
UriHelpersTests.cs (2)
56new object[] {new Uri("/relativeUri", UriKind.Relative), new Uri("http://domain")}, 57new object[] {new Uri("http://sub.domain"), new Uri("/relative", UriKind.Relative)}
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Extensions\HttpClientExtensions.cs (1)
47target = new Uri(formaction, UriKind.Relative);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ControllerBaseTest.cs (2)
1355var uri = new Uri("/test/url", UriKind.Relative); 1550var uri = new Uri("/test/url", UriKind.Relative);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
LinkGenerationTests.cs (1)
68TestPlatformHelper.IsMono ? new Uri(expected) : new Uri(expected, UriKind.Relative),
Microsoft.Build.Tasks.Core (1)
ManifestUtil\PathUtil.cs (1)
123Uri u = new Uri(path, UriKind.RelativeOrAbsolute);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (1)
143System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/adornment/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
52System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/adornment/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Dashboard\RenameDashboard.g.cs (1)
173System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/dashboard/re" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/smartrename/" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.g.cs (1)
62System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/inlinerename/ui/smartrename/" +
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\QuickInfo\OnTheFlyDocsView.g.cs (1)
52System.Uri resourceLocater = new System.Uri(("/Microsoft.CodeAnalysis.EditorFeatures.Wpf;component/quickinfo/ontheflydocsview.x" +
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.cs (1)
202return new(uriString, UriKind.Absolute);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
UriTests.cs (5)
195var encodedUri = new Uri(encodedUriString, UriKind.Absolute); 219var upperCaseUri = new Uri(@"file:///C:/Users/dabarbet/source/repos/XUnitApp1/UnitTest1.cs", UriKind.Absolute); 220var lowerCaseUri = new Uri(@"file:///c:/Users/dabarbet/source/repos/XUnitApp1/UnitTest1.cs", UriKind.Absolute); 267var upperCaseUri = new Uri(@"git:/Blah", UriKind.Absolute); 268var lowerCaseUri = new Uri(@"git:/blah", UriKind.Absolute);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
504var uri = new Uri(path, UriKind.RelativeOrAbsolute);
Microsoft.DotNet.Build.Tasks.VisualStudio (2)
Vsix\FinalizeInsertionVsixFile.cs (2)
47var part = package.GetPart(new Uri(VsixManifestPartName, UriKind.Relative)); 110var part = package.GetPart(new Uri("/manifest.json", UriKind.Relative));
Microsoft.Maui (4)
Handlers\WebView\WebViewHandler.iOS.cs (2)
150 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute); 151 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Platform\iOS\MauiWKWebView.cs (2)
109 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute); 110 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Microsoft.Maui.Controls (13)
ResourceDictionary.cs (3)
438 return new Uri($"{value};assembly={assembly.GetName().Name}", UriKind.Relative); 446 ? new Uri($"{GetResourcePathUriScheme}{uri.OriginalString}", UriKind.Absolute) 447 : new Uri($"{GetResourcePathUriScheme}/{rootTargetPath}/../{uri.OriginalString}", UriKind.Absolute);
Routing.cs (1)
245 var uri = new Uri(route, UriKind.RelativeOrAbsolute);
Shell\ShellNavigationState.cs (2)
45 uri = new Uri($"/{uri.PathAndQuery}", UriKind.Relative); 101 return new Uri(string.Join(Routing.PathSeparator, toKeep), UriKind.Relative);
Shell\ShellUriHandler.cs (6)
71 var returnValue = ConvertToStandardFormat("scheme", "host", null, new Uri(result, UriKind.Relative)); 72 return new Uri(FormatUri(returnValue.PathAndQuery), UriKind.Relative); 77 return new Uri(FormatUri(path.OriginalString), UriKind.Absolute); 80 return new Uri(FormatUri(path.OriginalString), UriKind.Relative); 96 return new Uri(path, UriKind.Relative); 101 return new Uri(path, UriKind.Relative);
UriTypeConverter.cs (1)
23 return new Uri(strValue, UriKind.RelativeOrAbsolute);
Microsoft.Maui.Controls.Build.Tasks (2)
CompiledConverters\RDSourceTypeConverter.cs (1)
43 var uri = new Uri(value, UriKind.Relative);
CompiledValueProviders\StyleSheetProvider.cs (1)
56 var uri = new Uri(source, UriKind.Relative);
Microsoft.Maui.Controls.Compatibility (2)
iOS\Renderers\WkWebViewRenderer.cs (2)
181 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute); 182 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Microsoft.Maui.Controls.Xaml (4)
ApplyPropertiesVisitor.cs (1)
379 VisualDiagnostics.RegisterSourceInfo(target, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), lineInfo.LineNumber, lineInfo.LinePosition);
CreateValuesVisitor.cs (2)
173 VisualDiagnostics.RegisterSourceInfo(value, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition); 192 VisualDiagnostics.RegisterSourceInfo(rnode.Root, new Uri($"{path};assembly={assemblyName}", UriKind.Relative), ((IXmlLineInfo)node).LineNumber, ((IXmlLineInfo)node).LinePosition);
ResourceDictionaryHelpers.cs (1)
32 var resourcePath = ResourceDictionary.RDSourceTypeConverter.GetResourcePath(new Uri(value, UriKind.Relative), rootTargetPath);
Microsoft.VisualStudio.LanguageServices (42)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (1)
206System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/changesignature/addparameterdi" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (1)
238System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/changesignature/changesignatur" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (1)
112System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/commoncontrols/memberselection" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (1)
112System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/commoncontrols/newtypedestinat" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
89System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/documentoutline/documentoutlin" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/analyzers" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\SeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/analyzers" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/codestyle" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Common\EnumPropertyView.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/common/en" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.g.cs (1)
69System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/namingsty" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (1)
149System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/settingse" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.g.cs (1)
62System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/whitespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (1)
61System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/editorconfigsettings/whitespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (1)
79System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/errorreporting/detailederrorin" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractClass\ExtractClassDialog.g.cs (1)
86System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/extractclass/extractclassdialo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractInterface\ExtractInterfaceDialog.g.cs (1)
96System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/extractinterface/extractinterf" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (1)
181System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/generatetype/generatetypedialo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
64System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/inheritancemargin/marginglyph/" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\MoveStaticMembersDialog.g.cs (1)
135System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movestaticmembers/movestaticme" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\StaticMemberSelection.g.cs (1)
94System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movestaticmembers/staticmember" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveToNamespace\MoveToNamespaceDialog.g.cs (1)
118System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/movetonamespace/movetonamespac" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (1)
128System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pickmembers/pickmembersdialog." +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (1)
183System.Uri resourceLocater = new System.Uri("/Microsoft.VisualStudio.LanguageServices;component/previewpane/previewpane.xaml", System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\MainDialog\PullMemberUpDialog.g.cs (1)
103System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pullmemberup/maindialog/pullme" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\WarningDialog\PullMemberUpWarningDialog.g.cs (1)
77System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/pullmemberup/warningdialog/pul" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
55System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/stacktraceexplorer/stacktracee" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorerRoot.g.cs (1)
80System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/stacktraceexplorer/stacktracee" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\UnusedReferences\Dialog\RemoveUnusedReferencesDialog.g.cs (1)
87System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/unusedreferences/dialog/remove" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (1)
70System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/valuetracking/valuetrackingroo" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingTree.g.cs (1)
103System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices;component/valuetracking/valuetrackingtre" +
Progression\GraphNodeIdCreation.cs (5)
32GraphNodeId.GetPartial(CodeGraphNodeIdName.Assembly, new Uri(document.Project.FilePath, UriKind.RelativeOrAbsolute)), 33GraphNodeId.GetPartial(CodeGraphNodeIdName.File, new Uri(document.FilePath, UriKind.RelativeOrAbsolute))); 413return new Uri(foundProject.OutputFilePath, UriKind.RelativeOrAbsolute); 430return new Uri(reference.FilePath, UriKind.RelativeOrAbsolute); 440return new Uri(foundProject.OutputFilePath, UriKind.Absolute);
VSWpfThemeService.cs (1)
25_themeDictionary.Source = new Uri("/Microsoft.VisualStudio.LanguageServices;component/VSThemeDictionary.xaml", UriKind.Relative);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\AdvancedOptionPageControl.g.cs (1)
773System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/advancedoptionp" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\Formatting\FormattingOptionPageControl.g.cs (1)
93System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/formatting/form" +
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\IntelliSenseOptionPageControl.g.cs (1)
181System.Uri resourceLocater = new System.Uri(("/Microsoft.VisualStudio.LanguageServices.CSharp;component/options/intellisenseopt" +
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\AdvancedOptionPageControl.g.vb (1)
617Dim resourceLocater As System.Uri = New System.Uri("/Microsoft.VisualStudio.LanguageServices.VisualBasic;component/options/advancedop"& _
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\IntelliSenseOptionPageControl.g.vb (1)
141Dim resourceLocater As System.Uri = New System.Uri("/Microsoft.VisualStudio.LanguageServices.VisualBasic;component/options/intellisen"& _
PresentationCore (12)
MS\Internal\FontCache\FamilyCollection.cs (1)
242FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension), UriKind.RelativeOrAbsolute),
MS\Internal\FontCache\FontCacheUtil.cs (1)
310_windowsFontsUriObject = new Uri(_windowsFontsLocalPath, UriKind.Absolute);
MS\Internal\FontCache\FontSourceCollection.cs (2)
113fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), true)); 122fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), isComposite));
MS\Internal\FontFace\CompositeFontParser.cs (2)
872throw new FileFormatException(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x); 942throw new FileFormatException(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Media\TypeConverterHelper.cs (1)
66uriHolder.OriginalUri = new Uri((string)inputString, UriKind.RelativeOrAbsolute);
System\Windows\Media\Color.cs (1)
292Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
System\Windows\Navigation\BaseUriHelper.cs (4)
174Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 452source = new Uri(uri.AbsolutePath, UriKind.Relative); 453baseUri = new Uri(uri.GetLeftPart(UriPartial.Authority), UriKind.Absolute); 507return new Uri(appendedUri, UriKind.Relative);
PresentationFramework (27)
MS\Internal\AppModel\ContentFilePart.cs (1)
84return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(Uri.ToString(), UriKind.RelativeOrAbsolute)).ToString();
MS\Internal\AppModel\ResourcePart.cs (1)
99return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(_name, UriKind.RelativeOrAbsolute)).ToString();
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
880Uri namespaceUri = new Uri(xmlNamespace, UriKind.RelativeOrAbsolute);
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
230Uri uri = new Uri(ns, UriKind.RelativeOrAbsolute);
System\Windows\Documents\DocumentReference.cs (1)
68DocumentsTrace.FixedDocumentSequence.IDF.Trace($"DocumentReference.GetDocument ({(Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source)}, {forceReload})");
System\Windows\Documents\FixedPage.cs (3)
640inputUri = new Uri(inputUriStringWithoutFragment, UriKind.RelativeOrAbsolute); 648inputUri = new Uri(startPartUriString, UriKind.RelativeOrAbsolute); 659absoluteUri = new Uri(absoluteUri.ToString() + fragment, UriKind.RelativeOrAbsolute);
System\Windows\Documents\FixedSchema.cs (1)
165Uri targetUri = PackUriHelper.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative));
System\Windows\Documents\FixedSOMImage.cs (2)
58imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute); 79imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute);
System\Windows\Documents\PageContent.cs (3)
72DocumentsTrace.FixedFormat.PageContent.Trace($"PageContent.GetPageRoot Source={(Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source)}"); 104DocumentsTrace.FixedFormat.PageContent.Trace($"PageContent.GetPageRootAsync Source={(Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source)}"); 144DocumentsTrace.FixedFormat.PageContent.Trace($"PageContent.GetPageRootAsyncCancel Source={(Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source)}");
System\Windows\Documents\WpfPayload.cs (5)
317Uri payloadUri = new Uri($"payload://wpf{newWpfPayoutCount}", UriKind.Absolute); 454Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 682Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 701Uri imagePartUri = new Uri(XamlPayloadDirectory + imageSourceString, UriKind.Relative); 766Uri entryPartUri = new Uri(XamlPayloadDirectory + XamlEntryName, UriKind.Relative);
System\Windows\Markup\ParserContext.cs (1)
109_baseUri = new Uri(xmlParserContext.BaseURI, UriKind.RelativeOrAbsolute);
System\Windows\Navigation\JournalEntry.cs (1)
345BaseUriHelper.GetAssemblyNameAndPart(new Uri(relativeUri, UriKind.Relative), out part, out assy, out assyVers, out assyKey);
System\Windows\ResourceDictionary.cs (1)
2576public ResourceDictionarySourceUriWrapper(Uri originalUri, Uri versionedUri) : base(originalUri.OriginalString, UriKind.RelativeOrAbsolute)
System\Windows\ThemeDictionaryExtension.cs (1)
116return new System.Uri(uri.ToString(), System.UriKind.RelativeOrAbsolute);
System\Windows\ThemeManager.cs (4)
175return new ResourceDictionary() { Source = new Uri(FluentThemeResourceDictionaryUri + "Fluent.HC.xaml", UriKind.Absolute) }; 183rd = new ResourceDictionary() { Source = new Uri(FluentThemeResourceDictionaryUri + "Fluent.xaml", UriKind.Absolute) }; 186Uri dictionaryUri = new Uri(FluentColorDictionaryUri + colorFileName, UriKind.Absolute); 192rd = new ResourceDictionary() { Source = new Uri(FluentThemeResourceDictionaryUri + themeFileName, UriKind.Absolute) };
PresentationUI (4)
artifacts\obj\PresentationUI\x86\Debug\net10.0\InstallationError.g.cs (1)
115System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/installationerror.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\MS\Internal\Documents\FindToolBar.g.cs (1)
171System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/ms/internal/documents/findtoolbar.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationError.g.cs (1)
123System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/tenfeetinstallationerror.xaml", System.UriKind.Relative);
artifacts\obj\PresentationUI\x86\Debug\net10.0\TenFeetInstallationProgress.g.cs (1)
115System.Uri resourceLocater = new System.Uri("/PresentationUI;V10.0.0.0;component/tenfeetinstallationprogress.xaml", System.UriKind.Relative);
ReachFramework (36)
Packaging\XpsDocument.cs (2)
107this.Uri = new Uri(path, UriKind.RelativeOrAbsolute); 160this.Uri = new Uri(path, UriKind.RelativeOrAbsolute);
Packaging\XpsFixedDocumentReaderWriter.cs (3)
496_metroPart.CreateRelationship(new Uri(structurePath, UriKind.Relative), 544_metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 959Uri relativeUri = new Uri(attribute, UriKind.Relative);
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
558Uri relativeUri = new Uri(attribute, UriKind.Relative);
Packaging\XpsFixedPageReaderWriter.cs (7)
753_metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 836_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 873_metroPart.CreateRelationship(new Uri(storyFragmentPath, UriKind.Relative), 1635_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1676_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1748_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1786_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative),
Packaging\XpsManager.cs (10)
111_uri = new Uri(path, UriKind.RelativeOrAbsolute); 399System.Uri partUri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 452metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 506metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 927return new Uri("/Documents/" + docCounter + "/Structure/DocStructure.struct", 950return new Uri("/Documents/" + docCounter + "/Structure/Fragments/"+pageNumber+".frag", 1025return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1062return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1158return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1522Uri unescapedUri = new Uri(relativeUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
Packaging\XpsResource.cs (1)
69return new Uri(XpsManager.MakeRelativePath(this.Uri, inUri), UriKind.Relative);
Packaging\XPSSignatureDefinition.cs (2)
361Uri pageUri = new Uri(SpotLocation.PageUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 521SpotLocation.PageUri = new Uri(attributeValue, UriKind.Relative);
Serialization\ColorTypeConverter.cs (1)
355Uri safeUnescapedUri = new Uri(profileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
Serialization\Manager\NullPackagingPolicy.cs (5)
318new Uri("package/font",UriKind.Relative)); 391new Uri("package/font",UriKind.Relative)); 530new Uri("package/image",UriKind.Relative)); 594new Uri("package/colorcontext",UriKind.Relative)); 658new Uri("package/colorcontext",UriKind.Relative));
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
808Uri uri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative));
Serialization\XpsFontSubsetter.cs (3)
455Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 601Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute); 637Uri fontUri = new Uri(_fontUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.RelativeOrAbsolute);
Roslyn.VisualStudio.DiagnosticsWindow (4)
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\TelemetryPanel.g.cs (1)
86System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/panels/telemetrypanel.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\Panels\WorkspacePanel.g.cs (1)
78System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/panels/workspacepanel.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\PerfMargin\StatusIndicator.g.cs (1)
62System.Uri resourceLocater = new System.Uri("/Roslyn.VisualStudio.DiagnosticsWindow;component/perfmargin/statusindicator.xaml", System.UriKind.Relative);
artifacts\obj\Roslyn.VisualStudio.DiagnosticsWindow\Release\net472\VenusMargin\ProjectionBufferMargin.g.cs (1)
54System.Uri resourceLocater = new System.Uri(("/Roslyn.VisualStudio.DiagnosticsWindow;component/venusmargin/projectionbuffermarg" +
System.ComponentModel.TypeConverter (3)
System\ComponentModel\UriTypeConverter.cs (3)
50return new Uri(uriString, UriKind.RelativeOrAbsolute); 55return new Uri(uri.OriginalString, GetUriKind(uri)); 85return new Uri(uri.OriginalString, GetUriKind(uri));
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
92Uri externalConfigUri = new Uri(externalConfigPath, UriKind.Absolute);
System.IO.Packaging (13)
System\IO\Packaging\FileFormatException.cs (1)
124_sourceUri = new Uri(sourceUriString, UriKind.RelativeOrAbsolute);
System\IO\Packaging\InternalRelationshipCollection.cs (1)
346Uri targetUri = new Uri(targetAttributeValue, DotNetRelativeOrAbsolute);
System\IO\Packaging\PackageRelationship.cs (1)
191private static readonly Uri s_containerRelationshipPartName = PackUriHelper.CreatePartUri(new Uri("/_rels/.rels", UriKind.Relative));
System\IO\Packaging\PackUriHelper.cs (5)
100return new Uri(resolvedUri.AbsolutePath, UriKind.Relative); 562safeUnescapedUri = new Uri(partUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), UriKind.Relative); 567new Uri(partUri.GetComponents(UriComponents.Path | 603private static readonly Uri s_packageRootUri = new Uri("/", UriKind.Relative); 763: base(partUriString, UriKind.Relative)
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (1)
331return ValidatePartUri(new Uri(partName, UriKind.Relative));
System\IO\Packaging\PartBasedPackageProperties.cs (1)
734return PackUriHelper.CreatePartUri(new Uri(propertyPartName, UriKind.Relative));
System\IO\Packaging\ZipPackage.cs (3)
214Uri partUri = new Uri(GetOpcNameFromZipItemName(zipArchiveEntry.FullName), UriKind.Relative); 1179new Uri(TemporaryPartNameWithoutExtension + extensionAttributeValue, UriKind.Relative)); 1202PackUriHelper.ValidatedPartUri partUri = PackUriHelper.ValidatePartUri(new Uri(partNameAttributeValue!, UriKind.Relative));
System.Net.Http (2)
System\Net\Http\HttpClient.cs (1)
811string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System\Net\Http\HttpRequestMessage.cs (1)
138: this(method, string.IsNullOrEmpty(requestUri) ? null : new Uri(requestUri, UriKind.RelativeOrAbsolute))
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
113string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
730return new Uri(str, UriKind.RelativeOrAbsolute); 747return new Uri(str, UriKind.RelativeOrAbsolute);
System.Private.Uri (2)
System\Uri.cs (1)
1865return new Uri(relativeUriString, UriKind.Relative);
System\UriBuilder.cs (1)
32_uri = new Uri(uri, UriKind.RelativeOrAbsolute);
System.Private.Xml (11)
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
1069_validator.BaseUri = (resolver == null) ? new Uri(_outerReader.BaseURI, UriKind.RelativeOrAbsolute) : resolver.ResolveUri(null, _outerReader.BaseURI);
System\Xml\Resolvers\XmlPreloadedResolver.cs (4)
207return new Uri(relativeUri, UriKind.Relative); 217return new Uri(relativeUri, UriKind.Relative); 363_mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 364_mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
System\Xml\Schema\Parser.cs (1)
84_schema.BaseUri = new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute);
System\Xml\Schema\ParserAsync.cs (1)
45_schema.BaseUri = new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute);
System\Xml\Schema\XmlSchemaSet.cs (3)
276Uri schemaUri = new Uri(schemaDocument.BaseURI!, UriKind.RelativeOrAbsolute); 800if (FindSchemaByNSAndUrl(new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute), targetNamespace, null) != null) 812if (IsSchemaLoaded(new Uri(reader.BaseURI!, UriKind.RelativeOrAbsolute), targetNamespace, out _))
System\Xml\XmlResolver.cs (1)
45Uri uri = new Uri(relativeUri!, UriKind.RelativeOrAbsolute);
System.ServiceModel.Syndication (6)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (3)
131ReadReferencedCategories(reader, referencedCategories, baseUri, new Uri(link, UriKind.RelativeOrAbsolute), version, maxExtensionSize); 366result.Link = new Uri(reader.Value, UriKind.RelativeOrAbsolute); 444result.BaseUri = new Uri(reader.Value, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\FeedUtils.cs (1)
79Uri newBaseUri = new Uri(newBase, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
386textInput.Link = new SyndicationLink(new Uri(value, UriKind.RelativeOrAbsolute));
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
474uri = new Uri(XmlUriData.UriString, XmlUriData.UriKind);
System.Windows.Forms.Tests (4)
System\Windows\Forms\WebBrowserTests.cs (4)
2056yield return new object[] { new Uri("", UriKind.Relative) }; 2087Uri relativeUri = new("/path", UriKind.Relative); 3390yield return new object[] { new Uri("", UriKind.Relative) }; 3458Uri relativeUri = new("/path", UriKind.Relative);
System.Xaml (6)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (6)
55return new Uri(uri.OriginalString, uriKind); 68return new Uri(uriString, UriKind.Absolute); 73return new Uri(uriString, UriKind.Relative); 76return new Uri(uriString, UriKind.RelativeOrAbsolute); 83return new Uri(uri.OriginalString, uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); 86return new Uri(uri.OriginalString, UriKind.RelativeOrAbsolute);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
210return new Uri(listeningUrlString, UriKind.Absolute);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
210return new Uri(listeningUrlString, UriKind.Absolute);
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
210return new Uri(listeningUrlString, UriKind.Absolute);
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
210return new Uri(listeningUrlString, UriKind.Absolute);
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
210return new Uri(listeningUrlString, UriKind.Absolute);