UriUtilityUriEncode Method (String, UriPart, Encoding) |
This API is preliminary and subject to change.
Encodes text for inclusion in a URI.
Namespace: net.openstack.CoreAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public static string UriEncode(
string text,
UriPart uriPart,
Encoding encoding
)
Public Shared Function UriEncode (
text As String,
uriPart As UriPart,
encoding As Encoding
) As String
public:
static String^ UriEncode(
String^ text,
UriPart uriPart,
Encoding^ encoding
)
static member UriEncode :
text : string *
uriPart : UriPart *
encoding : Encoding -> string
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:
StringThe URI-encoded text, suitable for the specified URI part.
Exceptions Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also