SPGlobalAdmin.AddCustomGlobalWebTemplate method

NOTE: This API is now obsolete.

Use the Add method of the SPPersistedCustomWebTemplateCollection class to add a template to the collection of custom site collection templates instead. (In Windows SharePoint Services 2.0, the AddCustomGlobalWebTemplate method added a site template to the site template gallery, and is maintained for backward compatibility.)

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

Syntax

'Declaration
<ObsoleteAttribute("Web Templates are now accessed via SPWebService.",  _
    False)> _
Public Sub AddCustomGlobalWebTemplate ( _
    strFwp As String, _
    strTitle As String, _
    strDescription As String _
)
'Usage
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
)

Parameters

  • strFwp
    Type: System.String

    A string that contains the full path for the site template file.

  • strTitle
    Type: System.String

    A string that contains the display name for the site template.

  • strDescription
    Type: System.String

    A string that contains the description for the site template.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace