共用方式為


Argument Element (ICF)

Contains one name/value pair for a delivery channel argument. These arguments are typically used to supply configuration and authentication information required by the delivery service.

語法

<DeliveryChannels>
    <DeliveryChannel>
        ...
        <Arguments>
            <Argument>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Required once or more per Arguments element.

Updates

Can be added or deleted, and then applied when updating the instance.

Element Relationships

Relationship Elements

Parent element

Arguments Element (ICF)

Child elements

Name Element for DeliveryChannel/Arguments/Argument (ICF)

Value Element for DeliveryChannel/Arguments/Argument (ICF)

備註

Delivery channel arguments are dependent on the delivery protocol. Each protocol has its own requirements. Examples of delivery channel arguments are the server name, a user name, and a password. The specified arguments are passed to the delivery protocol upon initialization. In the case of custom delivery protocols, these arguments are passed to the Initialize method.

For information about the arguments required by standard delivery protocols, see 標準傳遞通訊協定.

Notification Services does not validate delivery channel arguments when you create or update the instance.

Notification Services stores the argument names and values in the instance database. To encrypt the values stored in the database, use argument encryption. For more information, see 設定引數加密.

ms145836.note(zh-tw,SQL.90).gif附註:
Do not store user name and password information in the instance configuration file (ICF). Use parameters, as shown in the example, and then provide values for the parameters when creating and updating the instance.

範例

This example shows how to provide a user value to a delivery channel. You can specify a value for %User% on the command line or in the ParameterDefaults section.

<Argument>
    <Name>User</Name>
    <Value>%User%</Value>
</Argument>

請參閱

參考

Application Definition File Reference

概念

Instance Configuration File Reference

說明及資訊

取得 SQL Server 2005 協助