PSContextInfo constructor (Boolean, String, Guid, Guid, Guid, CultureInfo, CultureInfo, Guid, String)
NOTE: This API is now obsolete.
This constructor exists for Project Server 2013 backward compatibility. Creates a PSContextInfo object that includes language and locale culture information, and specifies a user delegate.
Namespace: Microsoft.Office.Project.Server.Library
Assembly: Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)
Syntax
'Declaration
<ObsoleteAttribute("This constructor exists for Project Server 2010 backward-compatibility.")> _
Public Sub New ( _
isWindowsUser As Boolean, _
userName As String, _
userGuid As Guid, _
trackingGuid As Guid, _
siteGuid As Guid, _
languageCulture As CultureInfo, _
localeCulture As CultureInfo, _
delegateGuid As Guid, _
delegateName As String _
)
'Usage
Dim isWindowsUser As Boolean
Dim userName As String
Dim userGuid As Guid
Dim trackingGuid As Guid
Dim siteGuid As Guid
Dim languageCulture As CultureInfo
Dim localeCulture As CultureInfo
Dim delegateGuid As Guid
Dim delegateName As String
Dim instance As New PSContextInfo(isWindowsUser, _
userName, userGuid, trackingGuid, _
siteGuid, languageCulture, localeCulture, _
delegateGuid, delegateName)
[ObsoleteAttribute("This constructor exists for Project Server 2010 backward-compatibility.")]
public PSContextInfo(
bool isWindowsUser,
string userName,
Guid userGuid,
Guid trackingGuid,
Guid siteGuid,
CultureInfo languageCulture,
CultureInfo localeCulture,
Guid delegateGuid,
string delegateName
)
Parameters
isWindowsUser
Type: System.BooleanSpecifies whether to use Windows authentication.
userName
Type: System.StringThe user name.
userGuid
Type: System.GuidThe GUID of the user.
trackingGuid
Type: System.GuidThe GUID for tracking the queue job.
siteGuid
Type: System.GuidThe GUID of the Project Web App site.
languageCulture
Type: System.Globalization.CultureInfoThe language culture, which is used for localizing strings and the user interface.
localeCulture
Type: System.Globalization.CultureInfoThe locale culture, which is used for formatting numbers, dates, and currency values.
delegateGuid
Type: System.GuidThe GUID of the delegate for the user.
delegateName
Type: System.StringThe name of the delegate for the user.