摘要:
The null keyword is a literal that represents a null reference,(Note:null reference)one that does not refer to any object.null is the default value of reference-type variables.Link:http://msdn.microsoft.com/en-us/library/edakx9da%28v=vs.71%29.aspx 阅读全文
摘要:
Deploy.batView Code 1 Powershell.exe -Command Set-ExecutionPolicy "Bypass"2 Powershell.exe -Command "& {%~dp0InstallMain.ps1}"3 PauseInstallMain.ps1View Code 1 function UpdateContentTypeChild($sitecollectionurl) 2 { 3 $sitecol=Get-SPSite $sitecollectionurl 4 $rootweb=$sitecol 阅读全文
摘要:
1 $splist.contenttypes["News"].fieldlinks.add($fieldlink)contenttypes中添加field的方法。下面这种则不起作用1 $splist.contenttypes["News"].fields.add($spfield)http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontenttype.fields.aspxhttp://hongzhguan.iteye.com/blog/1456881新建一个spfieldli 阅读全文
摘要:
contentType.ReadOnly=[System.BooLean]::False------------起作用contentType.ReadOnly=[System.BooLean]::True-------------不起作用ContentType.ReadOnly=$true----------------------------------起作用ContentType.ReadOnly=$false---------------------------------不起作用 阅读全文