NonHostedEventProvider Constructor (Application, String)
Initializes a new instance of the NonHostedEventProvider class with the parent application and a name.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
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
)
Parametri
- application
The parent Application for this NonHostedEventProvider.
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.
Esempio
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)
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
NonHostedEventProvider Class
NonHostedEventProvider Members
Microsoft.SqlServer.Management.Nmo Namespace
Altre risorse
Definizione di provider di eventi non hosted
NonHostedProvider Element (ADF)
ProviderName Element for NonHostedProvider (ADF)