SPWeb.GetSubwebsForCurrentUser method (Int32)

Gets the subsites beneath the current website of which the current user is a member based on the specified site definition.

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

Syntax

'Declaration
Public Function GetSubwebsForCurrentUser ( _
    nWebTemplateFilter As Integer _
) As SPWebCollection
'Usage
Dim instance As SPWeb
Dim nWebTemplateFilter As Integer
Dim returnValue As SPWebCollection

returnValue = instance.GetSubwebsForCurrentUser(nWebTemplateFilter)
public SPWebCollection GetSubwebsForCurrentUser(
    int nWebTemplateFilter
)

Parameters

  • nWebTemplateFilter
    Type: System.Int32

    The site definition. This parameter corresponds to the ID attribute of the Template element in Collaborative Application Markup Language (CAML).

Return value

Type: Microsoft.SharePoint.SPWebCollection
The subsites.

See also

Reference

SPWeb class

SPWeb members

GetSubwebsForCurrentUser overload

Microsoft.SharePoint namespace