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

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
)

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.

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.
Remarks
This method calls UriEncode(String, UriPart, Encoding) using the default UTF8 encoding.
Version Information

.NET Framework

Supported in: 4.5

openstack.net

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