ISafeControlCollection.Add Method
Adds a new safe control to the collection.
Namespace: Microsoft.VisualStudio.SharePoint.Packages
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function Add As ISafeControl
ISafeControl Add()
Return Value
Type: Microsoft.VisualStudio.SharePoint.Packages.ISafeControl
An object representing the new safe control added to the collection.
Remarks
Safe controls are controls that marked as secure by the control's author. Safe controls can be used by contributors. see Security for SharePoint Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.