ParameterDefaults Element (ADF)
Contains the definition of one or more parameters for the application definition file (ADF).
Синтаксис
<Application>
<ParameterDefaults>
Element Characteristics
Characteristic | Description |
---|---|
Data type and length |
None. |
Default value |
None. |
Occurrence |
Optional once per Application element. |
Updates |
Can be added and deleted when updating the application. |
Element Relationships
Relationship | Elements |
---|---|
Parent element |
|
Child elements |
Замечания
In your ADF, you can use a parameter for any element's value. The parameter takes the form %ParameterName%. You can provide values for these parameters in two places:
- In the ADF ParameterDefaults section.
- In the instance configuration file (ICF) Application/Parameters section.
You can also use parameters within the ICF, which provides additional methods of supplying parameter values. For more information, see Использование параметров в файле конфигурации экземпляра.
Пример
The following example shows how to define parameter defaults in the ADF. It defines a SysName
value that replaces any %SysName% string elsewhere in the ADF and a RetryInterval
value that replaces any %RetryInterval% string elsewhere in the ADF.
<ParameterDefaults>
<Parameter>
<Name>SysName</Name>
<Value>SERVER01</Value>
</Parameter>
<Parameter>
<Name>RetryInterval</Name>
<Value>P0DT00H15M00S</Value>
</Parameter>
</ParameterDefaults>
As a result, if the ADF has the following for a SystemName element:
<SystemName>%SysName%</SystemName>
Microsoft SQL Server Notification Services will replace the parameter when you create the instance so that the effective SystemName definition is this:
<SystemName>SERVER01</SystemName>
См. также
Справочник
Application Definition File Reference
Другие ресурсы
Использование параметров в файле определения приложения (ADF-файл)
Обновление экземпляров и приложений