共用方式為


ICodeAccessSecurityAssemblyCollection.Add 方法

加入新的程式碼存取安全性 (CAS) 組件。

命名空間:  Microsoft.VisualStudio.SharePoint.Packages
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
Function Add As ICodeAccessSecurityAssembly
ICodeAccessSecurityAssembly Add()

傳回值

型別:Microsoft.VisualStudio.SharePoint.Packages.ICodeAccessSecurityAssembly
物件,表示加入至集合中的新 CAS 組件。

.NET Framework 安全性

請參閱

參考

ICodeAccessSecurityAssemblyCollection 介面

Add 多載

Microsoft.VisualStudio.SharePoint.Packages 命名空間