다음을 통해 공유


Application Constructor (Instance, String)

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

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

구문

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

매개 변수

  • instance
    The Notification ServicesInstance that hosts the application. This parameter sets the Parent property.
  • name
    A String, between 1 and 64 characters in length, that specifies the name of the application. Each application in an instance must have a unique name.

    You cannot change the name. To rename an application, you must drop the application, define it with the new name, and then add it to the instance.

주의

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

The Application constructor creates a new instance of the Application class, sets the Parent and name properties, and sets the following default property values:

Property

Default value

ApplicationDefinitionFilePath

empty string

BaseDirectoryPath

empty string

ChronicleQuantumLimit

1440 quanta

EventThrottle

1000

LogBeforeDeliveryAttempts

true

LogNotificationText

true

LogStatusInfo

true

NotificationThrottle

1000

PerformanceQueryInterval

1 minute

ProcessEventsInOrder

false

QuantumDuration

1 minute

SchemaName

"dbo"

SubscriptionQuantumLimit

30 quanta

SubscriptionThrottle

1000

VacuumRetentionAge

7 days

The following example shows how to use this constructor. myInstance is a reference to a previously-instantiated Instance object. applicationName is a string variable that specifies the name of the application.

Application myApplication = 
    new Application(myInstance, applicationName);
Dim myApplication As Application = _
    New Application(myInstance, applicationName)

플랫폼

개발 플랫폼

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

대상 플랫폼

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

참고 항목

참조

Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace