ObjectLinkProvider constructor
Creates an ObjectLinkProvider object from the ASMX-based ObjectLinkProvider web service.
Namespace: WebSvcObjectLinkProvider
Assembly: ProjectServerServices (in ProjectServerServices.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New ObjectLinkProvider()
public ObjectLinkProvider()
Remarks
To create an object that is equivalent to ObjectLinkProvider by using the Windows Communication Foundation (WCF) API, use one of the ObjectLinkProviderClient constructors.
Examples
In the following statement, ObjectLinkProviderWebSvc is an arbitrary namespace for the ASMX-based ObjectLinkProvider web service.
private static ObjectLinkProviderWebSvc.ObjectLinkProvider objectLinkProvider = new ObjectLinkProviderWebSvc.ObjectLinkProvider();
In the following statement, SvcObjectLinkProvider is an arbitrary namespace for the WCF-based ObjectLinkProvider 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 SvcAdmin.ObjectLinkProvider objectLinkProviderClient = new SvcObjectLinkProvider.ObjectLinkProviderClient(endpt);