LoginForms Constructor

Creates an LoginForms object from the ASMX-based LoginForms web service.

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New LoginForms()
public LoginForms()

Remarks

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

Examples

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

private static LoginFormsWebSvc.LoginForms loginForms = new LoginFormsWebSvc.LoginForms();

In the following statement, SvcLoginForms is an arbitrary namespace for the WCF-based LoginForms 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 SvcLoginForms.LoginFormsClient loginFormsClient = new SvcLoginForms.LoginFormsClient(endpt);

See Also

Reference

LoginForms Class

LoginForms Members

LoginForms Web Service