共用方式為


QueueSystem 建構函式

從以 ASMX 型QueueSystem web 服務建立QueueSystem物件。

命名空間:  WebSvcQueueSystem
組件:  ProjectServerServices (在 ProjectServerServices.dll 中)

語法

'宣告
Public Sub New
'用途

Dim instance As New QueueSystem()
public QueueSystem()

備註

若要建立使用 Windows Communication Foundation (WCF) API,即等於QueueSystem物件,請使用其中一個QueueSystemClient建構函式。

範例

在下列陳述式, QueueSystemWebSvc是以 ASMX 型QueueSystem web 服務的任意命名空間。

private static QueueSystemWebSvc.QueueSystem queueSystem = new QueueSystemWebSvc.QueueSystem();

在下列陳述式, SvcQueueSystem是 wcf QueueSystem服務任意命名空間。endpt參數是String值,指定用戶端端點位址的名稱,在 app.config 檔案 (或 web 應用程式的 web.config 檔案中)。

private static SvcQueueSystem.QueueSystemClient queueSystemClient = new SvcQueueSystem.QueueSystemClient(endpt);

請參閱

參照

QueueSystem 類別

QueueSystem 成員

WebSvcQueueSystem 命名空間