Share via


SharePointHandler.GetSafeControls Method

Gets an enumerable object that itemizes all the safe controls for the specified site.

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

Syntax

'Declaration
Public Shared Function GetSafeControls ( _
    spWeb As SPWeb _
) As IEnumerable
'Usage
Dim spWeb As SPWeb
Dim returnValue As IEnumerable

returnValue = SharePointHandler.GetSafeControls(spWeb)
public static IEnumerable GetSafeControls(
    SPWeb spWeb
)

Parameters

Return Value

Type: System.Collections.IEnumerable
An IEnumerable that identifies all the safe controls of spWeb.

Remarks

The object returned by this method can be used to iterate over the safe controls list by using the foreach keyword.

See Also

Reference

SharePointHandler Class

SharePointHandler Members

Microsoft.SharePoint.ApplicationRuntime Namespace