SPHttpUtility.UrlKeyValueEncode - Méthode (String, TextWriter)
Encode la valeur ou la clé de chaîne de requête URL spécifié et l'ajoute au flux de sortie spécifié.
Espace de noms : Microsoft.SharePoint.Utilities
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Shared Sub UrlKeyValueEncode ( _
keyOrValueToEncode As String, _
output As TextWriter _
)
'Utilisation
Dim keyOrValueToEncode As String
Dim output As TextWriterSPHttpUtility.UrlKeyValueEncode(keyOrValueToEncode, _
output)
public static void UrlKeyValueEncode(
string keyOrValueToEncode,
TextWriter output
)
Paramètres
keyOrValueToEncode
Type : System.StringLa chaîne de clé ou valeur à encoder.
output
Type : System.IO.TextWriterUn objet T:System.IO.TextWriter qui représente le flux de sortie à laquelle ajouter la valeur ou la clé codée.
Remarques
Si un des paramètres keyOrValueToEncode ou output est null , cette méthode n'a aucun effet.