PSContextInfo Constructor

Creates an empty PSContextInfo object, for use with Microsoft Visual C#, version 3.0, initialization syntax.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New PSContextInfo()
public PSContextInfo()

Remarks

You can construct a PSContextInfo object with various parameters, by using the Visual C# 3.0 initialization syntax, as in the following example.

var x = new PSContextInfo() 
    {IsWindowsUser = true, 
     UserName = "Fred", 
     LanguageCulture = CultureInfo.GetCultureInfo("en-US")
    };

See Also

Reference

PSContextInfo Class

PSContextInfo Members

PSContextInfo Overload

Microsoft.Office.Project.Server.Library Namespace