PRELIMINARY INFORMATION - SUBJECT TO CHANGE
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Performs a setup of the localization by synchronizing resource strings from an XML source to the database.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[]
public static  Setup(
	 xml,
	 mode
)
Visual Basic (Declaration)Copy imageCopy Code
<> _
Public Shared Function Setup ( _
	xml As , _
	mode As  _
) As 

Parameters

xml
Locator
Item containing the XML with string resources. The XML may be in the 2.0 format that supports to specify resources per application, or may be in de 1.0 format that lacks applications and assumes the default application.
mode
LocaleSetupMode
Setup mode. Specify Count to count the number of inserts, updates and deletes that would be performed, without actually modifying the database. Specify Insert to insert new resources. Specify Update to insert new resources and to update the value of existing resources. Specify Delete to perform all necessary inserts, updates and deletes to make the database equal to the supplied resources, for the involved applications. Note that inserts and updates for the default application are honoured; deletes however will not be performed for the default application.

Return Value

Returns an one-row three-column table with the number of inserts, updates and deletes that would be performed or that are actually performed. Each application specific / resource key specific / culture specific resource string is counted individually.

See Also

Advanced