C# 클래스 FluentUri.FluentUriBuilder

파일 보기 프로젝트 열기: balazsbotond/FluentUriBuilder

공개 메소드들

메소드 설명
Create ( ) : FluentUriBuilder
Credentials ( string user, string password ) : FluentUriBuilder

Sets or updates the user credentials (user name and password) in the URI.

DefaultPort ( ) : FluentUriBuilder

Updates the URI to use the default port for the protocol.

Fragment ( string fragment ) : FluentUriBuilder

Sets or updates the fragment part of the URI.

From ( string baseUri ) : FluentUriBuilder
Host ( string host ) : FluentUriBuilder

Sets or updates the hostname of the URI.

Path ( string path ) : FluentUriBuilder

Sets or updates the local path in the URI.

Port ( int port ) : FluentUriBuilder

Sets or updates the port number in the URI.

QueryParam ( string key, string value ) : FluentUriBuilder

Adds a query parameter to the URI.

QueryParams ( object>.IDictionary queryParams ) : FluentUriBuilder

Sets the query parameters of the URI.

QueryParams ( object queryParams ) : FluentUriBuilder

Sets the query parameters of the URI.

RemoveCredentials ( ) : FluentUriBuilder

Removes the user name and password from the URI.

RemoveFragment ( ) : FluentUriBuilder

Removes the fragment part of the URI.

RemovePath ( ) : FluentUriBuilder

Removes the local path from the URI.

RemovePort ( ) : FluentUriBuilder

Removes the port number from the URI.

RemoveQueryParams ( ) : FluentUriBuilder

Removes all query parameters from the URI.

Scheme ( UriScheme scheme ) : FluentUriBuilder

Sets or updates the protocol scheme of the URI.

ToString ( ) : string

Returns the URI build by this instance as a string.

ToUri ( ) : Uri

Creates a new Uri instance from the values specified.

비공개 메소드들

메소드 설명
FluentUriBuilder ( string baseUri ) : System
initializeQueryParamsList ( ) : void

메소드 상세

Create() 공개 정적인 메소드

public static Create ( ) : FluentUriBuilder
리턴 FluentUriBuilder

Credentials() 공개 메소드

Sets or updates the user credentials (user name and password) in the URI.
/// If either of the arguments specified is null. ///
public Credentials ( string user, string password ) : FluentUriBuilder
user string /// The new value of the user. ///
password string /// The new value of the password. ///
리턴 FluentUriBuilder

DefaultPort() 공개 메소드

Updates the URI to use the default port for the protocol.
public DefaultPort ( ) : FluentUriBuilder
리턴 FluentUriBuilder

Fragment() 공개 메소드

Sets or updates the fragment part of the URI.
/// If the fragment specified is null. ///
public Fragment ( string fragment ) : FluentUriBuilder
fragment string /// The new value of the URI fragment. If empty, the base URI fragment is deleted. ///
리턴 FluentUriBuilder

From() 공개 정적인 메소드

public static From ( string baseUri ) : FluentUriBuilder
baseUri string
리턴 FluentUriBuilder

Host() 공개 메소드

Sets or updates the hostname of the URI.
/// If the hostname specified is a null or empty , /// or it only contains white space. ///
public Host ( string host ) : FluentUriBuilder
host string /// The new value of the hostname. Cannot be null or white space. ///
리턴 FluentUriBuilder

Path() 공개 메소드

Sets or updates the local path in the URI.
public Path ( string path ) : FluentUriBuilder
path string /// The new value of the local path. ///
리턴 FluentUriBuilder

Port() 공개 메소드

Sets or updates the port number in the URI.
/// If is less than -1 or greater than 65535. ///
public Port ( int port ) : FluentUriBuilder
port int /// An integer between -1 and 65535, inclusive. -1 indicates that the default /// port number for the protocol is to be used. ///
리턴 FluentUriBuilder

QueryParam() 공개 메소드

Adds a query parameter to the URI.
/// If either or is null or empty. ///
public QueryParam ( string key, string value ) : FluentUriBuilder
key string /// The key (name) of the query parameter. ///
value string /// The value of the query parameter. ///
리턴 FluentUriBuilder

QueryParams() 공개 메소드

Sets the query parameters of the URI.
/// If is null; ///
public QueryParams ( object>.IDictionary queryParams ) : FluentUriBuilder
queryParams object>.IDictionary /// The query parameters to add to the URI. ///
리턴 FluentUriBuilder

QueryParams() 공개 메소드

Sets the query parameters of the URI.
/// If is null; ///
public QueryParams ( object queryParams ) : FluentUriBuilder
queryParams object /// The object containing the query parameters to add to the URI. Property names /// and their values are used as parameter keys and values. ///
리턴 FluentUriBuilder

RemoveCredentials() 공개 메소드

Removes the user name and password from the URI.
public RemoveCredentials ( ) : FluentUriBuilder
리턴 FluentUriBuilder

RemoveFragment() 공개 메소드

Removes the fragment part of the URI.
public RemoveFragment ( ) : FluentUriBuilder
리턴 FluentUriBuilder

RemovePath() 공개 메소드

Removes the local path from the URI.
public RemovePath ( ) : FluentUriBuilder
리턴 FluentUriBuilder

RemovePort() 공개 메소드

Removes the port number from the URI.
public RemovePort ( ) : FluentUriBuilder
리턴 FluentUriBuilder

RemoveQueryParams() 공개 메소드

Removes all query parameters from the URI.
public RemoveQueryParams ( ) : FluentUriBuilder
리턴 FluentUriBuilder

Scheme() 공개 메소드

Sets or updates the protocol scheme of the URI.
public Scheme ( UriScheme scheme ) : FluentUriBuilder
scheme UriScheme /// The new value of the protocol scheme. ///
리턴 FluentUriBuilder

ToString() 공개 메소드

Returns the URI build by this instance as a string.
public ToString ( ) : string
리턴 string

ToUri() 공개 메소드

Creates a new Uri instance from the values specified.
public ToUri ( ) : Uri
리턴 System.Uri