返回指定 URL 叶名称中的非法字符的整数索引。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function IndexOfIllegalCharInUrlLeafName ( _
strLeafName As String _
) As Integer
用法
Dim strLeafName As String
Dim returnValue As Integer
returnValue = SPUrlUtility.IndexOfIllegalCharInUrlLeafName(strLeafName)
public static int IndexOfIllegalCharInUrlLeafName(
string strLeafName
)
参数
strLeafName
类型:System.String一个字符串,包含叶名称。
返回值
类型:System.Int32
32 位整数,它表示叶名称中的非法字符的索引。