Поделиться через


ApplicationCollection.Add Method

Adds an Application to the collection.

Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Sub Add ( _
    application As Application _
)
public void Add (
    Application application
)
public:
void Add (
    Application^ application
)
public void Add (
    Application application
)
public function Add (
    application : Application
)

Параметры

  • application
    An Application object representing a Notification Services application.

Замечания

Within a Notification Services instance, all application names must be unique.

If you add an application after creating the instance, you must Update the instance to apply the changes.

Пример

The following examples show how to call a method that defines an application and then add the application to an instance of Notification Services:

Application app = ConfigureApplication(myInstance);
myInstance.Applications.Add(app);
Dim app As Application = ConfigureApplication(myInstance)
myInstance.Applications.Add(app)

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

ApplicationCollection Class
ApplicationCollection Members
Microsoft.SqlServer.Management.Nmo Namespace

Другие ресурсы

Соединение приложений с экземпляром