上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 52 下一页
摘要: $objOu = [ADSI]"WinNT://shni391"$objUser = $objOU.Create("User", "TestComm") #用户名TestComm$objUser.setpassword("Password_1") #密码Password_1$objUser.SetInfo()$objUser.description = "Test Comm" #用户名描述$objUser.SetInfo()$objOu = [ADSI]"WinNT://shni391 阅读全文
posted @ 2011-09-30 09:50 风影极光 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 根据event获取事件触发者, 在ie下是event.srcElements 而ff等标准浏览器下下是event.target. 阅读全文
posted @ 2011-09-24 21:24 风影极光 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 应用场景:在Parallel Activity中使用InvokeWorkflow来达到间接关闭并行分支的功能。TestInvokeWorkflow方法用于启动监听工作流。endinvoke方法用户关闭启动的监听工作流实例。 private void TestInvokeWorkflow(object sender, EventArgs e) { SPWeb web = SPContext.Current.Web; SPList list = web.Lists["TestList"]; SPWorkflowAss... 阅读全文
posted @ 2011-09-15 16:28 风影极光 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-09-15 10:57 风影极光 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 取消正在执行的Workflow instance。以下代码以properties来自EventReceiver中的上下文。SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(properties.SiteId)) { using (SPWeb web = site.OpenWeb(properties.RelativeWebUrl)) { SPWorkflowManager manager = site.Work... 阅读全文
posted @ 2011-09-15 10:45 风影极光 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 关于使用Query实现不同版本的SharePoint迁移- In case of SP 2007 to SP 2010 upgrade , recommended to go with Microsoft upgrade approach instead of third party tools which suits for most requirements. Quest tool has limitation in preserving workflow history, workflow field status and Publishing site whilst most thir 阅读全文
posted @ 2011-09-14 16:32 风影极光 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 问题描述:我们经常在更新Item的时候,会触发工作流实例中的OnTaskChanged事件的自动触发。所以我们可以通过继承SPItemEventReceiver来解决这个问题。 SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling(); try { rh.DisableEventFiring(); ... 阅读全文
posted @ 2011-09-14 16:04 风影极光 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 因为经常需要提升权限来完成一件事情,特此封装为一个固定的方法来调用。 protected void RunWithElevatedPrivilegesAndContextSwitch(SPSecurity.CodeToRunElevated secureCode) { HttpContext backupContext = HttpContext.Current; HttpContext.Current = null; SPSecurity.RunWithElevatedPrivileges(secureCode)... 阅读全文
posted @ 2011-09-14 16:01 风影极光 阅读(187) 评论(0) 推荐(0) 编辑
摘要: function SetupUserGroups($site,$owners,$members,$vistors){ if($site -ne $null -and $site -ne "") { $web = $site.OpenWeb() $ownerGroup = $web.AssociatedOwnerGroup $memberGroup =$web.AssociatedMemberGroup $visitorGroup = $web.AssociatedVisitorGroup $xpath = "Id... 阅读全文
posted @ 2011-09-14 15:00 风影极光 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 借助.net的调试技巧在代码中添加此行代码,当程序运行时会自动要求调试人员附加相关的进行。System.Diagnostics.Debugger.Launch();2 附加进行,设置断点进行调试。查看端口对应的进程有以下几种方式命令C:\WINDOWS\system32\inetsrv>appcmd.exe list wpwindbg使用VS附加进程可以直接附加所有进程查看任务管理器 阅读全文
posted @ 2011-09-14 14:38 风影极光 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 52 下一页