Instance.Applications Property

Gets the collection of Notification Services applications hosted by the Notification Services instance.

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

Синтаксис

'Декларация
Public ReadOnly Property Applications As ApplicationCollection
public ApplicationCollection Applications { get; }
public:
property ApplicationCollection^ Applications {
    ApplicationCollection^ get ();
}
/** @property */
public ApplicationCollection get_Applications ()
public function get Applications () : ApplicationCollection

Значение свойства

The ApplicationCollection for the Instance.

Замечания

Each Notification Services instance hosts one or more applications. Use the Applications property to get the collection of applications and then use methods of the ApplicationCollection class to add, remove, or get individual applications.

The constructor sets a default SchemaName of dbo.

Пример

The following example shows how to call a method that defines an application and then add that application using this property:

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.

См. также

Справочник

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

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

Настройка экземпляров служб Notification Services
Applications Element (ICF)