共用方式為


SPGlobalAdmin.DeleteCustomGlobalWebTemplate Method

NOTE: This API is now obsolete.

Use the Remove method of the SPPersistedCustomWebTemplateCollection class to delete the template instead. (In Windows SharePoint Services 2.0, the DeleteCustomGlobalWebTemplate method was used to delete the specified global site template, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Web Templates are now accessed via SPWebService.",  _
    False)> _
Public Sub DeleteCustomGlobalWebTemplate ( _
    strTitle As String, _
    lcid As UInteger _
)
'Usage
Dim instance As SPGlobalAdmin
Dim strTitle As String
Dim lcid As UInteger

instance.DeleteCustomGlobalWebTemplate(strTitle, _
    lcid)
[ObsoleteAttribute("Web Templates are now accessed via SPWebService.", 
    false)]
public void DeleteCustomGlobalWebTemplate(
    string strTitle,
    uint lcid
)

Parameters

  • strTitle
    Type: System.String

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

  • lcid
    Type: System.UInt32

    An unsigned 32-bit integer that specifies the locale ID of the template.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace