Partager via


GetSubwebsForCurrentUser(Int32) Method

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

Parameters

nWebTemplateFilter   A 32-bit integer that specifies the site definition. This parameter corresponds to the ID attribute of the Template 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