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)

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.String

    The string to enclose in quotation marks.

  • quoteCharacter
    Type: System.Char

    A 16-bit Char representing the quotation-mark character to use.

Return value

Type: System.String
The string enclosed in the specified quotation marks.

See also

Reference

SPHttpUtility class

SPHttpUtility members

AddQuote overload

Microsoft.SharePoint.Utilities namespace