Name
UriBuilder
Synopsis
Every instance of Uri
is immutable.
This class wraps a Uri
object and allows you to modify some of its properties without
needing to create a new Uri
. It is
analogous to the System.Text.StringBuilder
class for strings.
Public Class UriBuilder ' Public Constructors Public Sub New() Public Sub New( ByVal uri As String) Public Sub New(ByVal schemeName As String, ByVal hostName As String) Public Sub New(ByVal scheme As String, ByVal host As String, ByVal portNumber As Integer) Public Sub New(ByVal scheme As String, ByVal host As String, ByVal port As Integer, ByVal pathValue As String) Public Sub New(ByVal scheme As String, ByVal host As String, ByVal port As Integer, ByVal path As String, ByVal extraValue As String) Public Sub New( ByVal uri As Uri) ' Public Instance Properties Public Property Fragment As String Public Property Host As String Public Property Password As String Public Property Path As String Public Property Port As Integer Public Property Query As String Public Property Scheme As String Public ReadOnly Property Uri As Uri Public Property UserName As String ' Public Instance Methods Overrides Public Function Equals( ByVal rparam As Object) As Boolean Overrides Public Function GetHashCode() As Integer Overrides Public Function ToString() As String End Class
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.