Share via


CustomFields Constructor

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

Namespace:  [CustomFields Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/CustomFields.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/CustomFields.asmx?wsdl

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New CustomFields()
public CustomFields()

Remarks

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

Examples

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);

See Also

Reference

CustomFields Class

CustomFields Members

CustomFields Web Service