Security constructor

Office 2013 and later

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

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

No code example is currently available or this language may not be supported.

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

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