14 instantiations of UriFormatException
Infrastructure.Common (1)
Microsoft.Extensions.AI.Abstractions (4)
PresentationCore (3)
System.Private.Uri (5)
System.Windows.Extensions (1)
85 references to UriFormatException
Aspire.Hosting (1)
dotnet-svcutil-lib (1)
Infrastructure.Common (1)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.Core (2)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (16)
Contents\DataContentTests.cs (15)
30[InlineData("data:", typeof(UriFormatException))] // data missing comma
31[InlineData("data:something,", typeof(UriFormatException))] // mime type without subtype
32[InlineData("data:something;else,data", typeof(UriFormatException))] // mime type without subtype
33[InlineData("data:type/subtype;;parameter=value;else,", typeof(UriFormatException))] // parameter without value
34[InlineData("data:type/subtype;parameter=va=lue;else,", typeof(UriFormatException))] // parameter with multiple =
35[InlineData("data:type/subtype;=value;else,", typeof(UriFormatException))] // empty parameter name
36[InlineData("data:image/j/peg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD", typeof(UriFormatException))] // multiple slashes in media type
39[InlineData("data:text;base64,something!", typeof(UriFormatException))] // Invalid base64 due to invalid character '!'
40[InlineData("data:text/plain;base64,U29tZQ==\t", typeof(UriFormatException))] // Invalid base64 due to tab character
41[InlineData("data:text/plain;base64,U29tZQ==\r", typeof(UriFormatException))] // Invalid base64 due to carriage return character
42[InlineData("data:text/plain;base64,U29tZQ==\n", typeof(UriFormatException))] // Invalid base64 due to line feed character
43[InlineData("data:text/plain;base64,U29t\r\nZQ==", typeof(UriFormatException))] // Invalid base64 due to carriage return and line feed characters
44[InlineData("data:text/plain;base64,U29", typeof(UriFormatException))] // Invalid base64 due to missing padding
45[InlineData("data:text/plain;base64,U29tZQ", typeof(UriFormatException))] // Invalid base64 due to missing padding
46[InlineData("data:text/plain;base64,U29tZQ=", typeof(UriFormatException))] // Invalid base64 due to missing padding
Microsoft.Maui.Essentials (12)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Microsoft.Web.XmlTransform (1)
netstandard (1)
NuGet.Protocol (1)
PresentationCore (1)
PresentationUI (1)
ReachFramework (1)
System (1)
System.Net.WebClient (1)
System.Net.WebProxy (5)
System.Private.Uri (15)
System\UriExt.cs (7)
20UriFormatException? e = TryCreateThis(uri, dontEscape, uriKind, in creationOptions);
30private UriFormatException? TryCreateThis(string? uri, bool dontEscape, UriKind uriKind, in UriCreationOptions creationOptions = default)
118_syntax.InternalValidate(this, out UriFormatException? e);
146catch (UriFormatException ex)
278newUriString = baseUri.Syntax.InternalResolve(baseUri, relativeUri, out UriFormatException? e);
650UriFormatException? e = result.TryCreateThis(uriString, dontEscape, uriKind, in creationOptions);
653catch (UriFormatException)
System.Runtime (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives.Tests (2)
System.Speech (5)
System.Windows.Extensions (2)
System.Windows.Forms (5)
vstest.console (1)
vstest.console.arm64 (1)