Share via


ISafeControl Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a safe control in the package.

Namespace:  Microsoft.VisualStudio.SharePoint.Packages
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface ISafeControl _
    Inherits IObservableModelElement
public interface ISafeControl : IObservableModelElement

The ISafeControl type exposes the following members.

Properties

  Name Description
Public property AssemblyName Gets or sets the fully-qualified name of the assembly containing the control.
Public property IsSafe Gets or sets whether the control is considered safe.
Public property IsSafeAgainstScript Gets or sets whether the control prevents script injection by contributors and, therefore, allows contributors to edit the control.
Public property NamespaceName Gets or sets the control namespace.
Public property TypeName Gets or sets the control class name.

Top

Events

  Name Description
Public event PropertyChanged Occurs when a DSL model element has changed. (Inherited from IObservableModelElement.)
Public event PropertyChanging Occurs when a DSL model element is being changed. (Inherited from IObservableModelElement.)

Top

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.

See Also

Reference

Microsoft.VisualStudio.SharePoint.Packages Namespace