SafeControl Element (Solution)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Adds or removes a control assembly from the safe controls list for a solution.

<SafeControl
  Assembly = "Text"
  Namespace = "Text"
  Safe = "TRUE" | "FALSE"
  TypeName = "Text">
</SafeControl>

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.

TypeName

Optional Text. The control type.

Child Elements

None

Parent Elements

SafeControls

Example

For an example of how this element is used, see Solution Schema.

Microsoft.Win32.RegistryKey#4