Click or drag to resize
UriUtilityUriEncode Method (String, UriPart, Encoding)
This API is preliminary and subject to change.
Encodes text for inclusion in a URI.

Namespace: net.openstack.Core
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public static string UriEncode(
	string text,
	UriPart uriPart,
	Encoding encoding
)

Parameters

text
Type: SystemString
The text to encode for inclusion in a URI.
uriPart
Type: net.openstack.CoreUriPart
A UriPart value indicating where in the URI the specified text will be included.
encoding
Type: System.TextEncoding
The encoding to use for Unicode characters in the URI. If this value is , the UTF8 encoding will be used.

Return Value

Type: String
The URI-encoded text, suitable for the specified URI part.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf text is .
ArgumentExceptionIf uriPart is not a valid UriPart.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also