共用方式為


Application.EventProvidersEnabled Property

Gets a value indicating if the application's event providers are enabled.

命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
Public ReadOnly Property EventProvidersEnabled As Boolean
public bool EventProvidersEnabled { get; }
public:
property bool EventProvidersEnabled {
    bool get ();
}
/** @property */
public boolean get_EventProvidersEnabled ()
public function get EventProvidersEnabled () : boolean

屬性值

true if event providers are enabled; otherwise false.

備註

When you create an application, its event providers are disabled.

An enabled event provider can submit events to an application. A disabled event provider cannot submit events.

Use the HostedEventProvider.Enable method to enable a single event provider. Use the Microsoft.SqlServer.Management.Nmo.HostedEventProviderCollection.Enable method to enable all event providers.

Use the instance's Enable method to enable all instance components, including the components for all applications hosted by the instance. Use the application's Enable method to enable all application components. Use a hosted event provider's Enable method to enable an individual hosted event provider.

執行緒安全性

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 的硬體和軟體需求>。

請參閱

參考

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

其他資源

控制執行個體與應用程式作業