Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Adds or removes a control assembly from the safe controls list for a solution.
<SafeControl
Assembly = "Text"
Namespace = "Text"
Safe = "TRUE" | "FALSE"
SafeAgainstScript = "TRUE" | "FALSE"
TypeName = "Text">
</SafeControl>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| Assembly |
Optional Text. The name of the control assembly. |
| Namespace |
Optional Text. The namespace associated with the assembly. |
| Safe |
Optional Boolean. TRUE to add the control to the safe controls list; FALSE to remove it. |
| SafeAgainstScript |
Optional Boolean. TRUE to allow property editing by a Contributor; FALSE to disable property editing for Contributors. |
| TypeName |
Optional Text. The control type. |
Child elements
None
Parent elements
Example
For an example of how this element is used, see Solution schema.