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)
Available in Sandboxed Solutions: No
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.StringThe 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