SPHttpUtility.AddQuote Method (String, Char)
Encloses the specified string in quotation marks using the specified character.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function AddQuote ( _
value As String, _
quoteCharacter As Char _
) As String
'Usage
Dim value As String
Dim quoteCharacter As Char
Dim returnValue As String
returnValue = SPHttpUtility.AddQuote(value, _
quoteCharacter)
public static string AddQuote(
string value,
char quoteCharacter
)
Parameters
value
Type: System.StringThe string to enclose in quotation marks.
quoteCharacter
Type: System.CharA 16-bit Char representing the quotation-mark character to use.
Return Value
Type: System.String
The string enclosed in the specified quotation marks.