SPGlobalAdmin.AddCustomGlobalWebTemplate method
NOTE: This API is now obsolete.
使用SPPersistedCustomWebTemplateCollection類別之Add方法將範本新增至自訂的網站集合範本的集合。(在Windows SharePoint Services 2.0, AddCustomGlobalWebTemplate方法新增至網站範本庫,一種網站範本和維護回溯相容性。)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Web Templates are now accessed via SPWebService.", _
False)> _
Public Sub AddCustomGlobalWebTemplate ( _
strFwp As String, _
strTitle As String, _
strDescription As String _
)
'用途
Dim instance As SPGlobalAdmin
Dim strFwp As String
Dim strTitle As String
Dim strDescription As String
instance.AddCustomGlobalWebTemplate(strFwp, _
strTitle, strDescription)
[ObsoleteAttribute("Web Templates are now accessed via SPWebService.",
false)]
public void AddCustomGlobalWebTemplate(
string strFwp,
string strTitle,
string strDescription
)
參數
strFwp
Type: System.String內含的網站範本檔案的完整路徑的字串。
strTitle
Type: System.String包含網站範本的顯示名稱的字串。
strDescription
Type: System.String包含網站範本的描述字串。