NSInstance Constructor (String)
Creates and initializes an instance of the NSInstance class.
命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
語法
'宣告
Public Sub New ( _
instanceName As String _
)
public NSInstance (
string instanceName
)
public:
NSInstance (
String^ instanceName
)
public NSInstance (
String instanceName
)
public function NSInstance (
instanceName : String
)
參數
- instanceName
The name of the Notification Services instance.
備註
更新的文字:2006 年 4 月 14 日
If you are using SQL Server Authentication, use the NSInstance(String,String,String) constructor or the default constructor.
範例
The following examples show how to create and initialize an NSInstance object in managed code:
Dim instanceName As String = "MyInstanceName"
'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)
string instanceName = "MyInstanceName";
//Create an NSInstance object.
NSInstance myInstance = new NSInstance(instanceName);
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace