可能有人指导我在.NET中创建一个APS登录标记编程?我需要使用此令牌网址报告......
解决方案 公共共享功能验证(帐户作为字符串,密码作为字符串,servername用作字符串,authenticationType作为字符串)作为字符串
昏暗是SessionManager作为新SessionMgr
昏暗enterpriseSession作为EnterpriseSession
尝试
enterpriseSession = sessionManager.Logon(账号,密码中servername,authenticationType)
'任何客户端计算机,120分钟,1000登录
返回enterpriseSession.LogonTokenMgr.CreateLogonTokenEx(,120,1000)
抓住EX为例外
投掷前
结束尝试
端功能
Could some one guide me to create a APS logon token in .Net programatically? I need to use this token for URL reporting....
解决方案Public Shared Function Authenticate (account As String, password As String, serverName As String, authenticationType As String) As String
Dim sessionManager As New SessionMgr
Dim enterpriseSession As EnterpriseSession
Try
enterpriseSession = sessionManager.Logon(account, password, serverName, authenticationType)
'any client computer, 120 minutes, 1000 logons
Return enterpriseSession.LogonTokenMgr.CreateLogonTokenEx("", 120, 1000)
Catch ex As Exception
Throw ex
End Try
End Function
上一篇:Xamarin的Android表格马prenderer表格、Andr、Xamarin、prenderer
下一篇:C#InvalidOperationException异常和跨线运行异常、InvalidOperationException