Compartir a través de


Distributor Class

Represents one distributor for a Notification Services application.

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public NotInheritable Class Distributor
    Inherits NamedSmoObject
public sealed class Distributor : NamedSmoObject
public ref class Distributor sealed : public NamedSmoObject
public final class Distributor extends NamedSmoObject
public final class Distributor extends NamedSmoObject

Notas

Distributors govern the formatting and distribution of notifications. Each application must have at least one distributor. If an application has multiple distributors, each one must run on a different server.

You add individual distributors to an application by using the Add method on the Distributors property.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
       Microsoft.SqlServer.Management.Smo.NamedSmoObject
        Microsoft.SqlServer.Management.Nmo.Distributor

Ejemplo

The following examples show how to add a distributor to an application:

// Define distributor for application
Distributor distributor = 
    new Distributor(myApplication, "Distributor");
distributor.SystemName = notificationServicesHost;
distributor.QuantumDuration = new TimeSpan(0, 0, 15);
distributor.ThreadPoolSize = 2;
myApplication.Distributors.Add(distributor);
' Define distributor for application
Dim distributor As Distributor = New Distributor( _
    myApplication, "Distributor")
distributor.SystemName = notificationServicesHost
distributor.QuantumDuration = New TimeSpan(0, 0, 15)
distributor.ThreadPoolSize = 2
myApplication.Distributors.Add(distributor)

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

Distributor Members
Microsoft.SqlServer.Management.Nmo Namespace

Otros recursos

Especificar la configuración del distribuidor
Distributor Element (ADF)