SafeControls element
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
A collection of ASPX controls and Web Parts that are designated as secure for any user to access on any ASPX page on the SharePoint site.
Syntax
<SafeControls>
<SafeControl.../>
</SafeControls>
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child elements
Element | Description |
---|---|
SafeControl | Optional element. Represents an ASPX control or Web Part that is designated as secure for any user to access on any ASPX page on the SharePoint site. |
Parent elements
Element | Description |
---|---|
ProjectItem | Represents a SharePoint project item. This element the required root element of the .spdata file. |
Remarks
For more information about safe controls, see Provide packaging and deployment information in project items.
Element information
Property | Value |
---|---|
Namespace | http://schemas.microsoft.com/VisualStudio/ 2010/SharePointTools/SharePointProjectItemModel |
Schema name | SharePoint Project Item Schema |
Validation file | ProjectItemModelSchema.xsd |
Can be empty | No |