Метод | Описание | |
---|---|---|
AddQueryParameter ( |
Add a query parameter with the specified name and value to a URI. This method always adds a new query parameter to the end of the query string, even if the URI already contains one or more query parameters with the specified parameter name. If necessary, characters in the parameter name are percent-encoded to conform to the requirements of a |
|
RemoveQueryParameter ( |
Remove all query parameters matching a particular parameter name from a URI. This method handles percent-encoded octets as UTF-8 encoded characters in both the parameter argument and the query string. |
|
SetQueryParameter ( |
Sets a URI query parameter to a specific value, adding or replacing the existing value as appropriate. This method is a convenience method for calling RemoveQueryParameter followed by AddQueryParameter. |
|
UriDecode ( string text ) : string |
Decodes the text of a URI by unescaping any percent-encoded character sequences and then evaluating the result using the default Encoding.UTF8 encoding. This method calls UriDecode(string, Encoding) using the default Encoding.UTF8 encoding. |
|
UriDecode ( string text, System.Text.Encoding encoding ) : string |
Decodes the text of a URI by unescaping any percent-encoded character sequences and then evaluating the result using the specified encoding.
|
|
UriEncode ( string text, UriPart uriPart ) : string |
Encodes text for inclusion in a URI using the Encoding.UTF8 encoding. This method calls UriEncode(string, UriPart, Encoding) using the default Encoding.UTF8 encoding. |
|
UriEncode ( string text, UriPart uriPart, System.Text.Encoding encoding ) : string |
Encodes text for inclusion in a URI.
|
Метод | Описание | |
---|---|---|
UriEncodeAny ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodeAnyUrl ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodeFragment ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodeHost ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodePath ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodePathSegment ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodeQuery ( string text, System.Text.Encoding encoding ) : string | ||
UriEncodeQueryValue ( string text, System.Text.Encoding encoding ) : string | ||
UriUtility ( ) : System |
public static AddQueryParameter ( |
||
uri | The URI to add a query parameter to. | |
parameter | string | The name of the query parameter to add. |
value | string | The value of the query parameter. |
Результат |
public static RemoveQueryParameter ( |
||
uri | The URI. | |
parameter | string | The name of the parameter to remove. |
Результат |
public static SetQueryParameter ( |
||
uri | The URI to add a query parameter to. | |
parameter | string | The name of the query parameter to add or update. |
value | string | The value of the query parameter. |
Результат |
public static UriDecode ( string text ) : string | ||
text | string | The encoded URI. |
Результат | string |
public static UriDecode ( string text, System.Text.Encoding encoding ) : string | ||
text | string | The encoded URI. |
encoding | System.Text.Encoding | The encoding to use for Unicode characters in the URI. If this value is |
Результат | string |
public static UriEncode ( string text, UriPart uriPart ) : string | ||
text | string | The text to encode for inclusion in a URI. |
uriPart | UriPart | A |
Результат | string |
public static UriEncode ( string text, UriPart uriPart, System.Text.Encoding encoding ) : string | ||
text | string | The text to encode for inclusion in a URI. |
uriPart | UriPart | A |
encoding | System.Text.Encoding | The encoding to use for Unicode characters in the URI. If this value is |
Результат | string |