다음을 통해 공유


Application.NonHostedEventProviders Property

Gets a NonHostedEventProviderCollection object, which contains the set of non-hosted event providers for the Notification Services application.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
Public ReadOnly Property NonHostedEventProviders As NonHostedEventProviderCollection
public NonHostedEventProviderCollection NonHostedEventProviders { get; }
public:
property NonHostedEventProviderCollection^ NonHostedEventProviders {
    NonHostedEventProviderCollection^ get ();
}
/** @property */
public NonHostedEventProviderCollection get_NonHostedEventProviders ()
public function get NonHostedEventProviders () : NonHostedEventProviderCollection

속성 값

A NonHostedEventProviderCollection object.

주의

Non-hosted event providers are independent event collection components; they are not run by the Notification Services engine. They are usually independent applications that use the Notification Services API or stored procedure to submit event data to an application. You declare the non-hosted event providers so you can later troubleshoot and track event collection. An application can have zero or more non-hosted event providers. An application can also use hosted event providers.

Use the methods of the NonHostedEventProviderCollection class to add or remove NonHostedEventProvider objects.

The following example shows how to define a non-hosted event provider and add it to an application:

// Define non-hosted event provider
NonHostedEventProvider nhep = 
    new NonHostedEventProvider(myApplication, "MyNonHostedEP");
myApplication.NonHostedEventProviders.Add(nhep);
' Define non-hosted event provider
Dim nhep As NonHostedEventProvider = _
    New NonHostedEventProvider(myApplication, "MyNonHostedEP")
myApplication.NonHostedEventProviders.Add(nhep)

스레드 보안

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
Application.HostedEventProviders Property

관련 자료

이벤트 공급자 정의
호스팅되지 않은 이벤트 공급자 개발