SPUrlUtility.IndexOfIllegalCharInUrlLeafName method

Returns the integer index of an illegal character in the specified URL leaf name.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function IndexOfIllegalCharInUrlLeafName ( _
    strLeafName As String _
) As Integer
'Usage
Dim strLeafName As String
Dim returnValue As Integer

returnValue = SPUrlUtility.IndexOfIllegalCharInUrlLeafName(strLeafName)
public static int IndexOfIllegalCharInUrlLeafName(
    string strLeafName
)

Parameters

  • strLeafName
    Type: System.String

    A string that contains the leaf name.

Return value

Type: System.Int32
A 32-bit integer representing the index of the illegal character within the leaf name.

See also

Reference

SPUrlUtility class

SPUrlUtility members

Microsoft.SharePoint.Utilities namespace