Export (0) Print
Expand All

LookupTable constructor

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

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

public LookupTable()

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

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

private static LookupTableWebSvc.LookupTable lookupTable = new LookupTableWebSvc.LookupTable();

In the following statement, SvcLookupTable is an arbitrary namespace for the WCF-based LookupTable 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 SvcLookupTable.LookupTableClient lookupTableClient = new SvcLookupTable.LookupTableClient(endpt);

Community Additions

ADD
Show:
© 2014 Microsoft