다음을 통해 공유


Instance Constructor (NotificationServices, String)

Initializes a new instance of the Instance class with a NotificationServices object and a name.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
Public Sub New ( _
    notificationServices As NotificationServices, _
    name As String _
)
public Instance (
    NotificationServices notificationServices,
    string name
)
public:
Instance (
    NotificationServices^ notificationServices, 
    String^ name
)
public Instance (
    NotificationServices notificationServices, 
    String name
)
public function Instance (
    notificationServices : NotificationServices, 
    name : String
)

매개 변수

  • name
    A String, between 1 and 64 characters in length, that specifies the name of the Notification Services instance. You use this instance name when administering the instance of Notification Services.

    You cannot change the instance name. You must drop the instance and create it again to change the name. If you attempt to change the name NMO will throw an exception.

주의

업데이트된 텍스트:2005년 12월 5일

Each Notification Services instance on a 데이터베이스 엔진 instance must have a unique name, which is not case-sensitive. For example, MyInstance and myinstance are not considered unique names.

Because this name is used for database objects, follow the SQL Server rules for regular identifiers. Do not use SQL Server reserved keywords or special characters, such as backslash (/), forward slash (\), left bracket ([), right bracket (]), double quotes ("), and single quote ('). For more information about SQL Server identifiers, see 식별자.

This constructor sets the following default property values.

Property

Value

EncryptArguments

false

SchemaName

"dbo"

The following examples show how to use this constructor:

Instance myInstance = new Instance(
    notificationServices, instanceName);
Dim myInstance As Instance = _
    New Instance(notificationServices, instanceName)

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace
DatabaseName

관련 자료

Notification Services 인스턴스 구성
NotificationServicesInstance Element (ICF)