Compartir a través de


LookupTable Constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New LookupTable()
public LookupTable()

Remarks

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

Examples

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

See Also

Reference

LookupTable Class

LookupTable Members

LookupTable Web Service