Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CustomFields constructor

CustomFields constructor

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:
© 2015 Microsoft