Security constructor

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

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Security()
public Security()

Remarks

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

Examples

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

private static SecurityWebSvc.Security security = new SecurityWebSvc.Security();

In the following statement, SvcSecurity is an arbitrary namespace for the WCF-based Security 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 SvcSecurity.SecurityClient securityClient = new SvcSecurity.SecurityClient(endpt);

See also

Reference

Security class

Security members

WebSvcSecurity namespace