Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the subsites beneath the current website in which the current user is a member, based on the specified site definition and configuration.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function GetSubwebsForCurrentUser ( _
nWebTemplateFilter As Integer, _
nConfigurationFilter As Short _
) As SPWebCollection
'Usage
Dim instance As SPWeb
Dim nWebTemplateFilter As Integer
Dim nConfigurationFilter As Short
Dim returnValue As SPWebCollection
returnValue = instance.GetSubwebsForCurrentUser(nWebTemplateFilter, _
nConfigurationFilter)
public SPWebCollection GetSubwebsForCurrentUser(
int nWebTemplateFilter,
short nConfigurationFilter
)
Parameters
nWebTemplateFilter
Type: System.Int32The site definition. This parameter corresponds to the ID attribute of the Template element in Collaborative Application Markup Language (CAML).
nConfigurationFilter
Type: System.Int16The identifier (ID) of a configuration. This parameter corresponds to the ID attribute of the Configuration element in CAML.
Return Value
Type: Microsoft.SharePoint.SPWebCollection
The subsites.