CustomFields constructor

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

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

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

WebSvcCustomFields namespace