SPHttpUtility.WriteAddQuote method (String, Char, Page)
Add a quote character quote around a given string, send it to TextWriter output stream. This function is a wrapper for AddQuote that takes a Page instead of a TextWriter for an argument.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub WriteAddQuote ( _
value As String, _
quoteCharacter As Char, _
page As Page _
)
'Usage
Dim value As String
Dim quoteCharacter As Char
Dim page As PageSPHttpUtility.WriteAddQuote(value, quoteCharacter, _
page)
public static void WriteAddQuote(
string value,
char quoteCharacter,
Page page
)
Parameters
value
Type: System.StringThe original string.
quoteCharacter
Type: System.Charquote character, such as " or '
page
Type: System.Web.UI.PageThe Page being written. The appropriate TextWriter will be fetched.
Remarks
Double quote characters in the given string are not escaped. Only available in the ASP app domain.