Compartir a través de


Providers Element (ADF)

Contains elements that define the event providers used by the application.

Sintaxis

<Application>
    ...
    <Providers>

Element Characteristics

Characteristic Description

Data type

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

Application Element (ADF)

Child elements

HostedProvider Element (ADF)

NonHostedProvider Element (ADF)

Notas

The Providers element contains definitions for all event providers, hosted and nonhosted, used by the application.

The Providers element is optional. If your application does not use event classes (meaning the event or subscription rules query other data sources for events), you do not need event providers.

Ejemplo

The following example shows how to define both a hosted event provider and a nonhosted event provider.

<Providers>
    <HostedProvider>
        <ProviderName>StockEP</ProviderName>
        <ClassName>StockData.StockProvider</ClassName>
        <AssemblyName>
        C:\EventProviders\CustomProviders\StockProvider.dll
        </AssemblyName>
        <SystemName>%SYSNAME%</SystemName>
        <Schedule>
            <StartTime>22:00:00</StartTime>
            <Interval>P0DT00H05M00S</Interval>
         </Schedule>
        <Arguments>
            <Argument>
                <Name>URL</Name>
                <Value>www.contoso.com/stockvalues</Value>
            </Argument>
        </Arguments>
    </HostedProvider>
    <NonHostedProvider>
        <ProviderName>EventWatcher</ProviderName>
    </NonHostedProvider>
</Providers>

Vea también

Referencia

Application Definition File Reference

Otros recursos

Definir proveedores de eventos alojados
Actualizar instancias y aplicaciones

Ayuda e información

Obtener ayuda sobre SQL Server 2005