共用方式為


SPPersistedCustomWebTemplate class

代表會保存自訂網站範本。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPPersistedCustomWebTemplate

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

Syntax

'宣告
<GuidAttribute("AAFADADF-8FD8-4E78-B0B5-80B37E755068")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPPersistedCustomWebTemplate _
    Inherits SPPersistedObject
'用途
Dim instance As SPPersistedCustomWebTemplate
[GuidAttribute("AAFADADF-8FD8-4E78-B0B5-80B37E755068")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPPersistedCustomWebTemplate : SPPersistedObject

備註

SPPersistedCustomWebTemplate類別是SPCustomWebTemplate類別的同層級,並在一起的兩種類別的表單一個邏輯的類別,繼承自SPWebTemplate類別和SPPersistedObject類別。可以透過提供SPPersistedCustomWebTemplate類別的執行個體建立SPCustomWebTemplate類別的執行個體。先前的類別繼承SPWebTemplate類別,並可用於涉及SPWebTemplateCollection的程式碼。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPPersistedCustomWebTemplate members

Microsoft.SharePoint.Administration namespace