SPSite.MaxWebNameLength Field

Represents the maximum number of characters that can be used in site names for the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Const MaxWebNameLength As Integer
'Usage
Dim value As Integer

value = SPSite.MaxWebNameLength
public const int MaxWebNameLength

Remarks

The value of this constant is 256.

The MaxWebNameLength field is static and cannot be called on an instance object. To call this field, use SPSite.MaxWebNameLength.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace