SPStringUtility.RemoveNonAlphaNumericChars Method
Removes nonalphanumeric characters from the specified string.
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 RemoveNonAlphaNumericChars ( _
value As String _
) As String
'Usage
Dim value As String
Dim returnValue As String
returnValue = SPStringUtility.RemoveNonAlphaNumericChars(value)
public static string RemoveNonAlphaNumericChars(
string value
)
Parameters
value
Type: System.StringA string containing the nonalphanumeric characters to be removed.
Return Value
Type: System.String
A version of the string with nonalphanumeric characters removed.