Definition at line 4107 of file Uri.cs.
4108 {
4110 {
4112 }
4114 Flags flags = Flags.Zero;
4117 {
4118 flags |= Flags.UserEscaped;
4119 }
4121 {
4122 flags |= Flags.DisablePathAndQueryCanonicalization;
4123 }
4125 {
4127 {
4128 return new Uri(flags & Flags.UserEscaped,
null, uriString);
4129 }
4130 return null;
4131 }
4132 Uri uri =
new Uri(flags,
syntax, uriString);
4133 try
4134 {
4136 if (e == null)
4137 {
4138 return uri;
4139 }
4140 return null;
4141 }
4142 catch (UriFormatException
ex)
4143 {
4145 return null;
4146 }
4147 }
static string Format(string resourceFormat, object p1)
static string net_uri_InvalidUriKind
static unsafe ParsingError ParseScheme(string uriString, ref Flags flags, ref UriParser syntax)
References System.Uri.Uri(), System.creationOptions, System.Runtime.Serialization.Dictionary, System.SR.Format(), System.Uri.InitializeUri(), System.SR.net_uri_InvalidUriKind, and System.Uri.ParseScheme().
Referenced by System.Uri.IsBaseOfHelper(), System.Uri.TryCreate(), System.Uri.TryCreate(), and System.Uri.TryCreate().