- 博客(25)
- 收藏
- 关注
原创 Powershell脚本获取列表上event receiver信息并输出到一个csv文件中
Param( [parameter(Mandatory=$true, Position=1)] [alias("sitePath")] $siteUrl )# Export all event receivers to a file try{ $spSite=Get-SPSite $siteUrl $allWebs=$spS
2015-07-29 10:47:44 921
原创 Powershell脚本设置SharePoint自动更新托管账户密码
# 创建密码修改计划$SPSchedule = new-object Microsoft.SharePoint.SPMonthlySchedule$SPSchedule.BeginDay = 7$SPSchedule.EndDay = 7$SPSchedule.BeginHour = 2$SPSchedule.EndHour = 3$SPSchedule.BeginMinute =
2015-07-29 10:13:35 912
原创 Powershell脚本获取SharePoint托管账户的密码
function Bindings(){return [System.Reflection.BindingFlags]::CreateInstance -bor[System.Reflection.BindingFlags]::GetField -bor[System.Reflection.BindingFlags]::Instance -bor[System.Reflection.Bi
2015-07-29 10:09:02 618
原创 SharePoint Event Receiver 网站范围和绑定的列表范围
实践证明: Feature scope = SiteIf receiver scope is set to site = provision receiver to all lists of site collection (list template/url is not taken into consideration)!If receiver scope is set to
2015-03-27 16:41:21 391
原创 Powershell修改SharePoint的web.config
param( [Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)] [Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind] $WebApplication ) process { $WebApp = $We
2015-03-18 16:19:22 1074
转载 堆和栈的区别
堆和栈的区别 一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回 收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵
2015-03-05 10:15:15 292
原创 SharePoint Retention Policies--Realize document archival
1.Go to site you want to store the archival and enable site feature Content Organizer2. Go to site setting to new one Content Organizer Rule2.Go to SharePoint Center Administrati
2014-12-24 14:23:53 548
原创 powershell enable items scheduling
$feature=Get-SPFeature $Id -Web $Url$documentLib = $spWeb.Lists[$spDoc] $scheduleFields = @{"PublishingStartDate" = "Scheduling Start Date"; "PublishingExpirationDate" = "Scheduling End Date
2014-12-10 22:19:44 373
原创 解决sharepoint2013 js用LoginName插入People字段失败
function SetUserFieldValue(fieldName, userName) { var _PeoplePicker = $("div[title='" + fieldName + "']"); var _PeoplePickerTopId = _PeoplePicker.attr('id'); var _PeoplePickerEdit
2014-10-16 17:54:38 444
转载 Linq to Sharepoint——使用Created,CreatedBy,Modified,ModifiedBy字段
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint.Linq;using Microsoft.SharePoint;public partial class Item: ICustomMapping{ [Cus
2014-09-18 11:42:17 597
转载 CAML——Join多表连接查询
SPList list = web.Lists["Orders"]; SPQuery query = new SPQuery();query.Joins = @" ";query.ProjectedFields = @"
2014-09-15 16:31:21 666
转载 Sharepoint习题——Ribbon
Question 64You are creating an application.You develop a custom control that renders a contextual tab. The controlcontains the following code segment. (Line numbers are included for referenceonly.
2014-09-12 13:18:44 561
转载 Sharepoint习题——Feature升级
Question 63You have a SharePoint farm that has more than 100 custom Features.You upgrade several Features in the farm.You need to ensure that the site collection uses the most up-to-dateversions
2014-09-12 13:17:22 495
转载 Sharepoint习题——SPSite和SPWeb
Question 60You have a SharePoint site collection that contains 100 subsites.You plan to create a Web Part. The Web Part will be deployed to eachsubsite.You need to ensure that the Web Part retri
2014-09-12 11:38:11 779
转载 Sharepoint习题——待定
Question 54You create custom code to import content to SharePoint sites.You create a custom site definition by using Microsoft Visual Studio 2010.You need to ensure that when a new site that use
2014-09-12 10:56:37 478
转载 Sharepoint习题——sandboxed之Webpart
Question 57You update a solution validator.You need to ensure that all SharePoint solutions are validated the next time the solutions are executed.What should you do?A. Modify the Guid attribu
2014-09-12 10:49:47 440
转载 Sharepoint习题——Site Definition
Question 51You use a third-party site definition to create SharePoint sites.You need to add a Web Part to the home page of the site definition.Which file should you modify?A. default.masterB
2014-09-12 10:22:05 474
转载 Sharepoint习题——Delegate Control
Question47You create a user control named MySearch.ascx.You plan to change the native search control in SharePoint to MySearch.ascx. You need to provide the site administrator with the ability to
2014-09-12 09:51:42 531
转载 Sharepoint习题——Webpart
Question28You have a Microsoft Office SharePoint Server 2007 site.You upgrade the site to SharePoint Server 2010.You need to create a Feature that prevents site collection administrators from up
2014-09-12 09:45:38 1125
转载 Sharepoint习题——master page
Question23 You have a SharePoint site. The current master page of the site is v4.master.You create a custom master page named MyMasterPage.master.You deploy the master page to /_catalogs/masterp
2014-09-12 09:20:14 1179
转载 Sharepoint习题——Custom Action
Question16You plan to add a custom tab to the Ribbon in a SharePoint Web application.You create a custom Feature that contains an Elements.xml file.You need to ensure that the custom tab only ap
2014-09-12 08:55:13 762
转载 Sharepoint习题——COM(Javascript)
Question 10You created a custom ASPX page that updates a list. The page is deployed to the _layouts folder.The page contains the following code segment. (Line numbers are included for reference
2014-09-12 08:41:19 547
转载 Sharepoint习题——Sandboxed Solution
Qeustion 8You have a SharePoint site collection. The root Web of the site collection has the URLhttp://intranet.You plan to create a user solution that will contain a Web Part. The Web Part will
2014-09-12 08:14:02 365
转载 Sharepoint习题——内存对象的释放
Question 4You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)01 protected void Page_Load(object sender, EventArgs e)02 {03 SPSite si
2014-09-12 08:00:54 422
原创 Sharepoint Client Object Model 之 开发基于.NET的应用程序
引用using Microsoft.SharePoint.Client;和using Microsoft.SharePoint.Client.Runtime两个类库
2014-08-28 09:35:48 753
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人