다음을 통해 공유


NonHostedEventProvider Constructor (Application, String)

Initializes a new instance of the NonHostedEventProvider class with the parent application and a name.

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

구문

‘선언
Public Sub New ( _
    application As Application, _
    name As String _
)
public NonHostedEventProvider (
    Application application,
    string name
)
public:
NonHostedEventProvider (
    Application^ application, 
    String^ name
)
public NonHostedEventProvider (
    Application application, 
    String name
)
public function NonHostedEventProvider (
    application : Application, 
    name : String
)

매개 변수

  • name
    A String, between 1 and 255 characters in length, that specifies the name of the NonHostedEventProvider. The name must be unique within the application.

    You cannot change the name. To rename a non-hosted event provider, remove the non-hosted event provider and then create a new one.

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)

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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

관련 자료

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