SubscriptionClassCollection.Add Method
Adds a SubscriptionClass to the SubscriptionClassCollection.
Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public Sub Add ( _
subscriptionClass As SubscriptionClass _
)
public void Add (
SubscriptionClass subscriptionClass
)
public:
void Add (
SubscriptionClass^ subscriptionClass
)
public void Add (
SubscriptionClass subscriptionClass
)
public function Add (
subscriptionClass : SubscriptionClass
)
Parámetros
- subscriptionClass
The SubscriptionClass to add to the collection.
Notas
If you add subscription classes after deploying the application, you must Update the instance to apply the changes.
Ejemplo
The following examples show how to add a subscription class to the collection of subscription classes in an application:
myApplication.SubscriptionClasses.Add(flightSubscriptions);
myApplication.SubscriptionClasses.Add(flightSubscriptions)
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
SubscriptionClassCollection Class
SubscriptionClassCollection Members
Microsoft.SqlServer.Management.Nmo Namespace
Otros recursos
Definir clases de suscripción
SubscriptionClass Element (ADF)