ListViewWebPart.RestrictedTemplateType Method (SPListTemplateType)
Determines whether access to the specified SPListTemplateType is restricted.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Shared Function RestrictedTemplateType ( _
template As SPListTemplateType _
) As Boolean
'Usage
Dim template As SPListTemplateType
Dim returnValue As Boolean
returnValue = ListViewWebPart.RestrictedTemplateType(template)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public static bool RestrictedTemplateType(
SPListTemplateType template
)
Parameters
template
Type: Microsoft.SharePoint.SPListTemplateTypeA list template type.
Return Value
Type: System.Boolean
true if access to the template is restricted; otherwise, false.
Remarks
The method returns Boolean value that indicates whether access to the specified template is restricted.