다음을 통해 공유


Distributor Constructor (Application, String)

Initializes a new instance of the Distributor class with an Application and a name.

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

구문

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

매개 변수

  • application
    The Application for the distributor. This parameter sets the Parent property.
  • name
    The String of up to 256 characters that specifies the name of the distributor.

    You cannot change the name. If you need to rename a distributor, you must remove the distributor and then define and add a distributor that has the new name.

주의

Each distributor is for a specific Application. The logical name of the distributor is used only to refer to the chronicle for administration and troubleshooting.

The following examples show how to create a distributor, define the distributor's properties, and then add it to an application:

// Define distributor for application
Distributor distributor = 
    new Distributor(myApplication, "Distributor");
distributor.SystemName = notificationServicesHost;
distributor.QuantumDuration = new TimeSpan(0, 0, 15);
distributor.ThreadPoolSize = 2;
myApplication.Distributors.Add(distributor);
' Define distributor for application
Dim distributor As Distributor = New Distributor( _
    myApplication, "Distributor")
distributor.SystemName = notificationServicesHost
distributor.QuantumDuration = New TimeSpan(0, 0, 15)
distributor.ThreadPoolSize = 2
myApplication.Distributors.Add(distributor)

플랫폼

개발 플랫폼

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

대상 플랫폼

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

참고 항목

참조

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

관련 자료

배포자 설정 지정
Distributor Element (ADF)