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 驗證。
userName
類型:System.String使用者名稱。
userGuid
類型:System.Guid使用者的 GUID。
trackingGuid
類型:System.Guid追蹤佇列工作 GUID。
siteGuid
類型:System.GuidProject Web App網站的 GUID。
languageCulture
類型:System.Globalization.CultureInfo語言文化特性,用於當地語系化字串和使用者介面。
localeCulture
類型:System.Globalization.CultureInfo地區設定文化特性,用來格式化數字、 日期和貨幣值。