Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
Distributor Class

Represents one distributor for a Notification Services application.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
VisualBasicDeclaration
Public NotInheritable Class Distributor
    Inherits NamedSmoObject
CSharp
public sealed class Distributor : NamedSmoObject
ManagedCPlusPlus
public ref class Distributor sealed : public NamedSmoObject
JSharp
public final class Distributor extends NamedSmoObject
JScript
public final class Distributor extends NamedSmoObject

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.


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

CSharp
// 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);
VisualBasic
' 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)
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.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker