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.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

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

其他资源

配置 Notification Services 实例
Applications Element (ICF)