SPVirtualServer.GetWebTemplates Method

NOTE: This API is now obsolete.

Obsolete. Returns the collection of site templates for the server that is specified by the locale ID (LCID).

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public Function GetWebTemplates ( _
    LCID As UInteger _
) As SPWebTemplateCollection
'Usage
Dim instance As SPVirtualServer
Dim LCID As UInteger
Dim returnValue As SPWebTemplateCollection

returnValue = instance.GetWebTemplates(LCID)
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", 
    false)]
public SPWebTemplateCollection GetWebTemplates(
    uint LCID
)

Parameters

  • LCID
    Type: System.UInt32

    An unsigned 32-bit integer that specifies the LCID of the server.

Return Value

Type: Microsoft.SharePoint.SPWebTemplateCollection
An SPWebTemplateCollection object that represents the site templates.

See Also

Reference

SPVirtualServer Class

SPVirtualServer Members

Microsoft.SharePoint.Administration Namespace