200 references to Relative
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 (6)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (2)
207return new Uri(relativeUri, UriKind.Relative); 217return new Uri(relativeUri, UriKind.Relative);
Metadata\MetadataFileNameManager.cs (3)
200if (Uri.TryCreate(filePath1, UriKind.Absolute, out fileUri) || Uri.TryCreate(filePath1, UriKind.Relative, out fileUri)) 212Uri.TryCreate(filePath1, UriKind.Relative, out uri1) && Uri.TryCreate(filePath2, UriKind.Relative, out uri2) && StringComparer.OrdinalIgnoreCase.Compare(uri1.ToString(), uri2.ToString()) == 0;
Shared\Options\UpdateOptions.cs (1)
97this.Inputs[idx] = new Uri(relPath, UriKind.Relative);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
231{ "/path", new Uri("/path", UriKind.Relative) },
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.Http.Results (2)
Results.cs (1)
529public static IResult LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl, bool permanent = false, bool preserveMethod = false)
TypedResults.cs (1)
587public static RedirectHttpResult LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl, bool permanent = false, bool preserveMethod = false)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Extensions\HttpClientExtensions.cs (1)
47target = new Uri(formaction, UriKind.Relative);
Microsoft.AspNetCore.Mvc.Core (7)
ControllerBase.cs (4)
386public virtual LocalRedirectResult LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 400public virtual LocalRedirectResult LocalRedirectPermanent([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 415public virtual LocalRedirectResult LocalRedirectPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 430public virtual LocalRedirectResult LocalRedirectPermanentPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl)
LocalRedirectResult.cs (3)
23public LocalRedirectResult([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 34public LocalRedirectResult([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl, bool permanent) 46public LocalRedirectResult([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl, bool permanent, bool preserveMethod)
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.AspNetCore.Mvc.Razor (2)
TagHelpers\UrlResolutionTagHelper.cs (2)
218protected bool TryResolveUrl([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string url, out string? resolvedUrl) 243protected bool TryResolveUrl([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string url, [NotNullWhen(true)] out IHtmlContent? resolvedUrl)
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageBase.cs (4)
411public virtual LocalRedirectResult LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 424public virtual LocalRedirectResult LocalRedirectPermanent([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 438public virtual LocalRedirectResult LocalRedirectPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 452public virtual LocalRedirectResult LocalRedirectPermanentPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl)
PageModel.cs (4)
718public virtual LocalRedirectResult LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 731public virtual LocalRedirectResult LocalRedirectPermanent([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 745public virtual LocalRedirectResult LocalRedirectPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl) 759public virtual LocalRedirectResult LocalRedirectPermanentPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl)
Microsoft.CodeAnalysis (1)
CommandLine\SarifErrorLogger.cs (1)
155if (Uri.TryCreate(path, UriKind.Relative, out var uri))
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameFlyout.g.cs (1)
144"nameflyout.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Adornment\RenameUserInputTextBox.g.cs (1)
53"nameuserinputtextbox.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\Dashboard\RenameDashboard.g.cs (1)
174"namedashboard.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameStatusControl.g.cs (1)
62"smartrenamestatuscontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.g.cs (1)
63"smartrenameuserinputcombobox.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures.Wpf\Release\net472\QuickInfo\OnTheFlyDocsView.g.cs (1)
53"aml"), System.UriKind.Relative);
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 (2)
Handlers\WebView\WebViewHandler.iOS.cs (1)
151 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Platform\iOS\MauiWKWebView.cs (1)
110 var safeRelativeUri = new Uri($"{uri.PathAndQuery}{uri.Fragment}", UriKind.Relative);
Microsoft.Maui.Controls (8)
ResourceDictionary.cs (1)
438 return new Uri($"{value};assembly={assembly.GetName().Name}", UriKind.Relative);
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 (5)
71 var returnValue = ConvertToStandardFormat("scheme", "host", null, new Uri(result, UriKind.Relative)); 72 return new Uri(FormatUri(returnValue.PathAndQuery), UriKind.Relative); 80 return new Uri(FormatUri(path.OriginalString), UriKind.Relative); 96 return new Uri(path, UriKind.Relative); 101 return new Uri(path, UriKind.Relative);
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 (1)
iOS\Renderers\WkWebViewRenderer.cs (1)
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 (37)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\AddParameterDialog.g.cs (1)
207"alog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (1)
239"edialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\MemberSelection.g.cs (1)
113".xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\CommonControls\NewTypeDestinationSelection.g.cs (1)
113"ionselection.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
90"eview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (1)
62"/view/analyzersettingsview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\SeverityControl.g.cs (1)
70"/view/severitycontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (1)
62"/view/codestylesettingsview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.g.cs (1)
70"/view/codestyleseveritycontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.g.cs (1)
70"/view/codestylevaluecontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Common\EnumPropertyView.g.cs (1)
70"umpropertyview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.g.cs (1)
70"le/view/columnviews/namingstyleslocationcontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.g.cs (1)
70"le/view/columnviews/namingstylesseveritycontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.g.cs (1)
70"le/view/columnviews/namingstylesstylecontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.g.cs (1)
70"le/view/columnviews/namingstylestypecontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (1)
62"le/view/namingstylesettingsview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (1)
150"ditorcontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.g.cs (1)
63"e/view/whitespaceboolsettingview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (1)
62"e/view/whitespacesettingsview.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ErrorReporting\DetailedErrorInfoDialog.g.cs (1)
80"fodialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractClass\ExtractClassDialog.g.cs (1)
87"g.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ExtractInterface\ExtractInterfaceDialog.g.cs (1)
97"acedialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GenerateType\GenerateTypeDialog.g.cs (1)
182"g.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (1)
65"inheritancemargincontextmenu.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\MoveStaticMembersDialog.g.cs (1)
136"mbersdialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveStaticMembers\StaticMemberSelection.g.cs (1)
95"selection.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\MoveToNamespace\MoveToNamespaceDialog.g.cs (1)
119"edialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (1)
129"xaml"), System.UriKind.Relative);
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)
104"mberupdialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PullMemberUp\WarningDialog\PullMemberUpWarningDialog.g.cs (1)
78"lmemberupwarningdialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (1)
56"xplorer.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorerRoot.g.cs (1)
81"xplorerroot.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\UnusedReferences\Dialog\RemoveUnusedReferencesDialog.g.cs (1)
88"unusedreferencesdialog.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingRoot.g.cs (1)
71"t.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ValueTracking\ValueTrackingTree.g.cs (1)
105"e.xaml"), System.UriKind.Relative);
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)
774"agecontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\Formatting\FormattingOptionPageControl.g.cs (1)
94"attingoptionpagecontrol.xaml"), System.UriKind.Relative);
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\Options\IntelliSenseOptionPageControl.g.cs (1)
182"ionpagecontrol.xaml"), System.UriKind.Relative);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\AdvancedOptionPageControl.g.vb (1)
618"tionpagecontrol.xaml", System.UriKind.Relative)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.VisualBasic\Release\net472\Options\IntelliSenseOptionPageControl.g.vb (1)
142"seoptionpagecontrol.xaml", System.UriKind.Relative)
PresentationCore (4)
System\Windows\Media\Color.cs (1)
292context.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
System\Windows\Navigation\BaseUriHelper.cs (3)
166Uri partUri = new Uri(uri.AbsolutePath, UriKind.Relative); 445source = new Uri(uri.AbsolutePath, UriKind.Relative); 500return new Uri(appendedUri, UriKind.Relative);
PresentationFramework (6)
System\Windows\Documents\FixedSchema.cs (1)
166Uri targetUri = PackUriHelper.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative));
System\Windows\Documents\WpfPayload.cs (4)
456Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 684Uri imagePartUri = new Uri(XamlPayloadDirectory + imagePartUriString, UriKind.Relative); 703Uri imagePartUri = new Uri(XamlPayloadDirectory + imageSourceString, UriKind.Relative); 768Uri entryPartUri = new Uri(XamlPayloadDirectory + XamlEntryName, UriKind.Relative);
System\Windows\Navigation\JournalEntry.cs (1)
340BaseUriHelper.GetAssemblyNameAndPart(new Uri(relativeUri, UriKind.Relative), out part, out assy, out assyVers, out assyKey);
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 (28)
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), 1632_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1673_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1745_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative), 1783_metroPart.CreateRelationship(new Uri(resourcePath, UriKind.Relative),
Packaging\XpsManager.cs (8)
399System.Uri partUri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 452metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 506metroPart.CreateRelationship(new Uri(relativePath, UriKind.Relative), 928UriKind.Relative); 951UriKind.Relative); 1025return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1062return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1158return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative));
Packaging\XpsResource.cs (1)
69return new Uri(XpsManager.MakeRelativePath(this.Uri, inUri), UriKind.Relative);
Packaging\XPSSignatureDefinition.cs (1)
521SpotLocation.PageUri = new Uri(attributeValue, UriKind.Relative);
Serialization\ColorTypeConverter.cs (1)
356profileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
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)
799Uri uri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative));
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)
55"in.xaml"), System.UriKind.Relative);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\UriTypeConverter.cs (1)
101private static UriKind GetUriKind(Uri uri) => uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative;
System.IO.Packaging (12)
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); 568UriComponents.KeepDelimiter, UriFormat.SafeUnescaped), UriKind.Relative); 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\IO\Packaging\ZipPackagePartPiece.cs (1)
136&& Uri.TryCreate(ZipPackage.GetOpcNameFromZipItemName(prefixName), UriKind.Relative, out Uri? unvalidatedPartUri)
System.Private.Uri (8)
System\Uri.cs (2)
470CreateThis(uriString, false, UriKind.Relative); 1865return new Uri(relativeUriString, UriKind.Relative);
System\UriExt.cs (6)
24if ((int)uriKind < (int)UriKind.RelativeOrAbsolute || (int)uriKind > (int)UriKind.Relative) 60((uriKind == UriKind.Relative || (_string.Length >= 2 && (_string[0] != '\\' || _string[1] != '\\'))) 73else if (uriKind == UriKind.Relative && InFact(Flags.DosPath)) 118else if (uriKind == UriKind.Relative) 171else if (uriKind == UriKind.Relative) 756if ((int)uriKind < (int)UriKind.RelativeOrAbsolute || (int)uriKind > (int)UriKind.Relative)
System.Private.Xml (2)
System\Xml\Resolvers\XmlPreloadedResolver.cs (2)
207return new Uri(relativeUri, UriKind.Relative); 217return new Uri(relativeUri, UriKind.Relative);
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 (4)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (4)
41uriKind = uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative; 71if (Uri.IsWellFormedUriString(uriString, UriKind.Relative)) 73return new Uri(uriString, UriKind.Relative); 83return new Uri(uri.OriginalString, uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
System.Xaml.Tests (14)
System\Xaml\Replacements\TypeUriConverterTests.cs (14)
65yield return new object[] { "", new Uri("", UriKind.Relative) }; 67yield return new object[] { "/path", new Uri("/path", UriKind.Relative) }; 71yield return new object[] { new Uri("", UriKind.Relative), new Uri("", UriKind.Relative) }; 73yield return new object[] { new Uri("/path", UriKind.Relative), new Uri("/path", UriKind.Relative) }; 119yield return new object[] { new Uri("", UriKind.Relative), new Uri("", UriKind.Relative) }; 121yield return new object[] { new Uri("/path", UriKind.Relative), new Uri("/path", UriKind.Relative) }; 137yield return new object[] { new Uri("", UriKind.Relative), UriKind.Relative }; 139yield return new object[] { new Uri("/path", UriKind.Relative), UriKind.Relative };
WindowsBase.Tests (7)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (7)
29Assert.Equal(new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), manager.SignatureOrigin); 281Assert.Equal(new Uri[] { new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative) }, parts); 288Assert.Equal(new Uri[] { new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative), new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative), new Uri("/package/services/digital-signature/_rels/origin.psdsor.rels", UriKind.Relative) }, parts);