Class Uri
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Uri : BoxedRecord, IEquatable<Uri>
- Inheritance
-
Uri
- Implements
- Inherited Members
Constructors
Uri(UriOwnedHandle)
public Uri(UriOwnedHandle handle)
Parameters
handle
UriOwnedHandle
Properties
Handle
public UriOwnedHandle Handle { get; }
Property Value
Methods
Build(UriFlags, string, string?, string?, int, string, string?, string?)
[Version("2.66")]
public static Uri Build(UriFlags flags, string scheme, string? userinfo, string? host, int port, string path, string? query, string? fragment)
Parameters
flags
UriFlagsscheme
stringuserinfo
stringhost
stringport
intpath
stringquery
stringfragment
string
Returns
BuildWithUser(UriFlags, string, string?, string?, string?, string?, int, string, string?, string?)
[Version("2.66")]
public static Uri BuildWithUser(UriFlags flags, string scheme, string? user, string? password, string? authParams, string? host, int port, string path, string? query, string? fragment)
Parameters
flags
UriFlagsscheme
stringuser
stringpassword
stringauthParams
stringhost
stringport
intpath
stringquery
stringfragment
string
Returns
Equals(Uri?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Uri? other)
Parameters
other
UriAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
ErrorQuark()
public static Quark ErrorQuark()
Returns
EscapeBytes(Span<byte>, string?)
[Version("2.66")]
public static string EscapeBytes(Span<byte> unescaped, string? reservedCharsAllowed)
Parameters
Returns
EscapeString(string, string?, bool)
[Version("2.16")]
public static string EscapeString(string unescaped, string? reservedCharsAllowed, bool allowUtf8)
Parameters
Returns
GetAuthParams()
[Version("2.66")]
public string? GetAuthParams()
Returns
GetFlags()
[Version("2.66")]
public UriFlags GetFlags()
Returns
GetFragment()
[Version("2.66")]
public string? GetFragment()
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetHost()
[Version("2.66")]
public string? GetHost()
Returns
GetPassword()
[Version("2.66")]
public string? GetPassword()
Returns
GetPath()
[Version("2.66")]
public string GetPath()
Returns
GetPort()
[Version("2.66")]
public int GetPort()
Returns
GetQuery()
[Version("2.66")]
public string? GetQuery()
Returns
GetScheme()
[Version("2.66")]
public string GetScheme()
Returns
GetUser()
[Version("2.66")]
public string? GetUser()
Returns
GetUserinfo()
[Version("2.66")]
public string? GetUserinfo()
Returns
IsValid(string, UriFlags)
[Version("2.66")]
public static bool IsValid(string uriString, UriFlags flags)
Parameters
Returns
Join(UriFlags, string?, string?, string?, int, string, string?, string?)
[Version("2.66")]
public static string Join(UriFlags flags, string? scheme, string? userinfo, string? host, int port, string path, string? query, string? fragment)
Parameters
flags
UriFlagsscheme
stringuserinfo
stringhost
stringport
intpath
stringquery
stringfragment
string
Returns
JoinWithUser(UriFlags, string?, string?, string?, string?, string?, int, string, string?, string?)
[Version("2.66")]
public static string JoinWithUser(UriFlags flags, string? scheme, string? user, string? password, string? authParams, string? host, int port, string path, string? query, string? fragment)
Parameters
flags
UriFlagsscheme
stringuser
stringpassword
stringauthParams
stringhost
stringport
intpath
stringquery
stringfragment
string
Returns
ListExtractUris(string)
[Version("2.6")]
public static string[] ListExtractUris(string uriList)
Parameters
uriList
string
Returns
- string[]
Parse(string, UriFlags)
[Version("2.66")]
public static Uri Parse(string uriString, UriFlags flags)
Parameters
Returns
ParseParams(string, long, string, UriParamsFlags)
[Version("2.66")]
public static HashTable ParseParams(string @params, long length, string separators, UriParamsFlags flags)
Parameters
params
stringlength
longseparators
stringflags
UriParamsFlags
Returns
ParseRelative(string, UriFlags)
[Version("2.66")]
public Uri ParseRelative(string uriRef, UriFlags flags)
Parameters
Returns
ParseScheme(string)
[Version("2.16")]
public static string? ParseScheme(string uri)
Parameters
uri
string
Returns
PeekScheme(string)
[Version("2.66")]
public static string? PeekScheme(string uri)
Parameters
uri
string
Returns
Ref()
[Version("2.66")]
public Uri Ref()
Returns
ResolveRelative(string?, string, UriFlags)
[Version("2.66")]
public static string ResolveRelative(string? baseUriString, string uriRef, UriFlags flags)
Parameters
Returns
Split(string, UriFlags, out string?, out string?, out string?, out int, out string, out string?, out string?)
[Version("2.66")]
public static bool Split(string uriRef, UriFlags flags, out string? scheme, out string? userinfo, out string? host, out int port, out string path, out string? query, out string? fragment)
Parameters
uriRef
stringflags
UriFlagsscheme
stringuserinfo
stringhost
stringport
intpath
stringquery
stringfragment
string
Returns
SplitNetwork(string, UriFlags, out string?, out string?, out int)
[Version("2.66")]
public static bool SplitNetwork(string uriString, UriFlags flags, out string? scheme, out string? host, out int port)
Parameters
Returns
SplitWithUser(string, UriFlags, out string?, out string?, out string?, out string?, out string?, out int, out string, out string?, out string?)
[Version("2.66")]
public static bool SplitWithUser(string uriRef, UriFlags flags, out string? scheme, out string? user, out string? password, out string? authParams, out string? host, out int port, out string path, out string? query, out string? fragment)
Parameters
uriRef
stringflags
UriFlagsscheme
stringuser
stringpassword
stringauthParams
stringhost
stringport
intpath
stringquery
stringfragment
string
Returns
ToString()
[Version("2.66")]
public string ToString()
Returns
ToStringPartial(UriHideFlags)
[Version("2.66")]
public string ToStringPartial(UriHideFlags flags)
Parameters
flags
UriHideFlags
Returns
UnescapeBytes(string, long, string?)
[Version("2.66")]
public static Bytes UnescapeBytes(string escapedString, long length, string? illegalCharacters)
Parameters
Returns
UnescapeSegment(string?, string?, string?)
[Version("2.16")]
public static string? UnescapeSegment(string? escapedString, string? escapedStringEnd, string? illegalCharacters)
Parameters
Returns
UnescapeString(string, string?)
[Version("2.16")]
public static string? UnescapeString(string escapedString, string? illegalCharacters)
Parameters
Returns
Unref()
[Version("2.66")]
public void Unref()