다음을 통해 공유


IScheduledEventProvider.Initialize Method

Initializes the event provider.

네임스페이스: Microsoft.SqlServer.NotificationServices
어셈블리: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

구문

‘선언
Sub Initialize ( _
    nsApplication As NSApplication, _
    providerName As String, _
    args As StringDictionary, _
    stopDelegate As StopHandler _
)
void Initialize (
    NSApplication nsApplication,
    string providerName,
    StringDictionary args,
    StopHandler stopDelegate
)
void Initialize (
    NSApplication^ nsApplication, 
    String^ providerName, 
    StringDictionary^ args, 
    StopHandler^ stopDelegate
)
void Initialize (
    NSApplication nsApplication, 
    String providerName, 
    StringDictionary args, 
    StopHandler stopDelegate
)
function Initialize (
    nsApplication : NSApplication, 
    providerName : String, 
    args : StringDictionary, 
    stopDelegate : StopHandler
)

매개 변수

  • nsApplication
    An NSApplication representing the Notification Services application to which this event provider delivers events.
  • providerName
    A String containing the name of the event provider, as specified in the application definition.
  • args
    A StringDictionary containing the names and values of the initialization arguments, as specified in the application definition.
  • stopDelegate
    A StopHandler delegate that the event provider can use to call back to the provider host to request termination.

    Note that the event provider is not initialized until the Initialize method completes. Calling stopDelegate during initialization has no effect.

주의

The provider host calls this method to notify the scheduled event provider that it must perform initialization. The args parameter provides the initialization arguments for the event provider. For more information about event provider arguments, see 호스팅된 이벤트 공급자 정의.

You use the values provided in the args parameter to set class variables and prepare the event provider to run. This often involves setting information about the event source that the event provider monitors and the event class that defines the events that the event provider creates.

The event provider host calls the Initialize method when it starts. The event provider returns as soon as initialization is complete. The provider host always calls Initialize before calling the Run or Terminate method.

The Initialize method has a five-minute time-out window. If initialization has not completed within that time, an error is logged and the event provider's Terminate method is called.

For an example of how to implement the Initialize method, see the IScheduledEventProvider topic.

스레드 보안

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 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

IScheduledEventProvider Interface
IScheduledEventProvider Members
Microsoft.SqlServer.NotificationServices Namespace