Partager via


GetSubwebsForCurrentUser(Int32, Int16) Method

The GetSubwebsForCurrentUser method of the SPWeb class returns the collection of subsites beneath the current site in which the current user is a member based on the specified site definition and configuration.

Parameters

nWebTemplateFilter   A 32-bit integer that specifies the ID of a site definition specified in WEBTEMP.XML. This parameter corresponds to the Name attribute of the Template element in CAML.

nConfigurationFilter   A 16-bit integer that specifies the ID of a configuration defined in the WEBTEMP.XML and ONET.XML files. This parameter corresponds to the ID attribute of the Configuration element in Collaborative Application Markup Language (CAML).

Return Value

A Microsoft.SharePoint.SPWebCollection object that represents the collection of subsites.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security