ApplicationDefinitionFilePath Element (ICF)

Contains the file name, and optionally the path to, the application definition file (ADF).

语法

<Applications>
    <Application>
        ...
        <ApplicationDefinitionFilePath>

Element Characteristics

Characteristic Description

Data type

string, between 1 and 260 characters in length.

Default value

None.

Occurrence

Required once per Application element.

Updates

Can be modified, and then applied when updating the instance.

Element Relationships

Relationship Elements

Parent element

Application Element (ICF)

Child elements

None.

备注

If the ADF file is in the folder specified by the BaseDirectoryPath value, use only the ADF name, such as StockADF.xml.

If the ADF file is not in the folder specified by BaseDirectoryPath, the ApplicationDefinitionFilePath value is a relative path from BaseDirectoryPath to the ADF, such as ..\..\Datafiles\StockADF.xml, or is a fully qualified path, such as D:\Datafiles\StockADF.xml or \\Server\Share\StockADF.xml.

We recommend placing all instance configuration files (ICFs) and application definition files (ADFs) in secure folders.

示例

The following example shows how to provide an ADF file name when the file is located in the BaseDirectoryPath folder.

<ApplicationDefinitionFilePath>
StockADF.xml
</ApplicationDefinitionFilePath>

The following example shows how to specify a path relative to the BaseDirectoryPath folder.

<ApplicationDefinitionFilePath>
..\..\appDefinition\StockADF.xml
</ApplicationDefinitionFilePath>

The following example shows how to specify a fully qualified path that is not relative to the BaseDirectoryPath folder.

<ApplicationDefinitionFilePath>
D:\Datafiles\appDefinition\StockADF.xml
</ApplicationDefinitionFilePath>

请参阅

参考

Application Definition File Reference

概念

Instance Configuration File Reference

帮助和信息

获取 SQL Server 2005 帮助