共用方式為


PSContextInfo 建構函式 (Boolean, String, Guid, Guid, Guid, CultureInfo, CultureInfo)

附註:此 API 目前已過時。

此建構函式存在於Project Server 2013回溯相容性。建立PSContextInfo物件,其中包含語言和地區設定的文化特性資訊。

命名空間:  Microsoft.Office.Project.Server.Library
組件:  Microsoft.Office.Project.Server.Library (在 Microsoft.Office.Project.Server.Library.dll 中)

語法

'宣告
<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 _
)
'用途
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 instance As New PSContextInfo(isWindowsUser, _
    userName, userGuid, trackingGuid, _
    siteGuid, languageCulture, localeCulture)
[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
)

參數

  • isWindowsUser
    類型:System.Boolean

    指定是否要使用 Windows 驗證。

  • trackingGuid
    類型:System.Guid

    追蹤佇列工作 GUID。

  • siteGuid
    類型:System.Guid

    Project Web App網站的 GUID。

請參閱

參照

PSContextInfo 類別

PSContextInfo 成員

PSContextInfo 多載

Microsoft.Office.Project.Server.Library 命名空間