CustomFields constructor

Office 2013 and later

Creates a CustomFields object from the ASMX-based CustomFields web service.

Namespace:  WebSvcCustomFields
Assembly:  ProjectServerServices (in ProjectServerServices.dll)

public CustomFields()

To create an object that is equivalent to CustomFields by using the Windows Communication Foundation (WCF) API, use one of the CustomFieldsClient constructors.

In the following statement, CustomFieldsWebSvc is an arbitrary namespace for the ASMX-based CustomFields web service.

private static CustomFieldsWebSvc.CustomFields customFields = new CustomFieldsWebSvc.CustomFields();

In the following statement, SvcCustomFields is an arbitrary namespace for the WCF-based CustomFields service. The endpt parameter is a String value that specifies the name of the client endpoint address in the app.config file (or in the web.config file for web applications).

private static SvcCustomFields.CustomFieldsClient customFieldsClient = new SvcCustomFields.CustomFieldsClient(endpt);
Show: