다음을 통해 공유


NonHostedEventProvider Class

Represents a non-hosted event provider for a Notification Services application.

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

구문

‘선언
Public NotInheritable Class NonHostedEventProvider
    Inherits NamedSmoObject
public sealed class NonHostedEventProvider : NamedSmoObject
public ref class NonHostedEventProvider sealed : public NamedSmoObject
public final class NonHostedEventProvider extends NamedSmoObject
public final class NonHostedEventProvider extends NamedSmoObject

주의

Non-hosted event providers are external applications that submit event data to a Notification Services application using the EventCollector class, EventLoader class or event-collection stored procedures.

Notification Services does not control or interact with the non-hosted event providers. Therefore, you only provide the event provider name in the application definition so that you can later track and troubleshoot events submitted by the event provider.

Using the methods of this class, you can enable and disable non-hosted event providers to allow them to submit events or prevent them from submitting events.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
       Microsoft.SqlServer.Management.Smo.NamedSmoObject
        Microsoft.SqlServer.Management.Nmo.NonHostedEventProvider

The following examples show how to define a non-hosted event provider and add it to the collection of non-hosted event providers for the 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 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

NonHostedEventProvider Members
Microsoft.SqlServer.Management.Nmo Namespace
HostedEventProvider Class

관련 자료

호스팅되지 않은 이벤트 공급자 정의
NonHostedProvider Element (ADF)