Compartir a través de


NonHostedEventProvider Constructor (Application, String)

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

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
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
)

Parámetros

  • 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.

Ejemplo

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)

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

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

Otros recursos

Definir proveedores de eventos no alojados
NonHostedProvider Element (ADF)
ProviderName Element for NonHostedProvider (ADF)