NSInstance Constructor (String, String, String)
Creates and initializes an instance of the NSInstance class and sets a login name and password for SQL Server Authentication.
命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
語法
'宣告
Public Sub New ( _
instanceName As String, _
sqlUser As String, _
sqlPassword As String _
)
public NSInstance (
string instanceName,
string sqlUser,
string sqlPassword
)
public:
NSInstance (
String^ instanceName,
String^ sqlUser,
String^ sqlPassword
)
public NSInstance (
String instanceName,
String sqlUser,
String sqlPassword
)
public function NSInstance (
instanceName : String,
sqlUser : String,
sqlPassword : String
)
參數
- instanceName
The name of the Notification Services instance.
- sqlUser
The login name to use for SQL Server Authentication.
- sqlPassword
The password for the sqlUser login.
備註
新增:2006 年 4 月 14 日
If using Windows Authentication, use the NSInstance(String) constructor or the default constructor.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace