Share via


SPAlertTemplateCollection.InitAlertTemplatesFromFile method

Creates or updates alert templates with the XML from the specified alert templates file.

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

Syntax

'Declaration
Public Sub InitAlertTemplatesFromFile ( _
    templatesFile As String _
)
'Usage
Dim instance As SPAlertTemplateCollection
Dim templatesFile As String

instance.InitAlertTemplatesFromFile(templatesFile)
public void InitAlertTemplatesFromFile(
    string templatesFile
)

Parameters

  • templatesFile
    Type: System.String

    The XML defining one or more alert templates.

Remarks

If templatesFile is a null reference (Nothing in Visual Basic), the default alert template is used. For any template in the file whose name does not match an existing template, the template is created. If the name does match an existing template, the template is updated.

See also

Reference

SPAlertTemplateCollection class

SPAlertTemplateCollection members

Microsoft.SharePoint namespace