Security Constructor
Creates a Security object from the ASMX-based Security web service.
Namespace: [Security Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Security.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Security.asmx?wsdl
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);