Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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