获取错误“无法使用非CLS兼容类型” - PowerShell [英] Getting the error “Failed to use non CLS compliant type”- PowerShell
本文介绍了获取错误“无法使用非CLS兼容类型” - PowerShell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在使用powershell从sharepoint 2013检索webpart属性时遇到以下错误。
We are facing following error while retrieving webpart properties from sharepoint 2013 using powershell.
GetType出现错误。感谢任何帮助。
Error is coming at GetType. Appreciate any help.
$ wps.GetType()。FullName
$wps.GetType().FullName
推荐答案
您好,
试试下面的脚本在页面中获取Web部件属性,在我这边工作:
Try the script below to get web part properties in the page, works in my side:
serverUrl =" http:/ / sp / sites / jerrydev /"
serverUrl="http://sp/sites/jerrydev/"
site = Get-SPSite -Identity
site = Get-SPSite -Identity
这篇关于获取错误“无法使用非CLS兼容类型” - PowerShell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文