次の方法で共有


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)

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