NonHostedEventProvider Constructor ()
Initializes a new instance of the NonHostedEventProvider class.
Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New
public NonHostedEventProvider ()
public:
NonHostedEventProvider ()
public NonHostedEventProvider ()
public function NonHostedEventProvider ()
Remarks
Updated text:5 December 2005
Updated sample code:5 December 2005
If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set other properties.
Example
The following examples show how to use this default constructor to create a non-hosted event provider and add it to an application:
// Define non-hosted event provider and set properties.
NonHostedEventProvider nhep = new NonHostedEventProvider();
nhep.Name = "MyNonHostedEP";
nhep.Parent = myApplication;
myApplication.NonHostedEventProviders.Add(nhep);
' Define non-hosted event provider and set properties.
Dim nhep As NonHostedEventProvider = New NonHostedEventProvider()
nhep.Name = "MyNonHostedEP"
nhep.Parent = myApplication
myApplication.NonHostedEventProviders.Add(nhep)
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
NonHostedEventProvider Class
NonHostedEventProvider Members
Microsoft.SqlServer.Management.Nmo Namespace
Other Resources
Defining Non-Hosted Event Providers
NonHostedProvider Element (ADF)