PSContextInfo 建構函式 (Boolean, String, Guid, Guid, Guid, CultureInfo, CultureInfo, Guid, String)
附註:此 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, _
delegateGuid As Guid, _
delegateName As String _
)
'用途
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
)
參數
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地區設定文化特性,用來格式化數字、 日期和貨幣值。
delegateGuid
類型:System.Guid使用者委派的 GUID。
delegateName
類型:System.String使用者的代理人的名稱。