共用方式為


ListViewWebPart.RestrictedTemplateType method (SPListTemplateType)

判斷是否有限制存取指定的SPListTemplateType

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

Syntax

'宣告
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Shared Function RestrictedTemplateType ( _
    template As SPListTemplateType _
) As Boolean
'用途
Dim template As SPListTemplateType
Dim returnValue As Boolean

returnValue = ListViewWebPart.RestrictedTemplateType(template)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public static bool RestrictedTemplateType(
    SPListTemplateType template
)

參數

傳回值

Type: System.Boolean
true如果存取範本有限制。否則, false。

備註

這個方法會傳回Boolean值,指出是否有限制存取指定的template 。

請參閱

參照

ListViewWebPart class

ListViewWebPart members

RestrictedTemplateType overload

Microsoft.SharePoint.WebPartPages namespace