Share via


ISafeControlEntry Interface

Represents a safe control entry that is added to SharePoint's web.config file when it is deployed.

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

Syntax

'Declaration
Public Interface ISafeControlEntry _
    Inherits INotifyObjectDisposing, INotifyObjectDisposed, INotifyPropertyChanged
public interface ISafeControlEntry : INotifyObjectDisposing, 
    INotifyObjectDisposed, INotifyPropertyChanged

The ISafeControlEntry type exposes the following members.

Properties

  Name Description
Public property AssemblyName Gets or sets the fully-qualified assembly name of the safe control entry.
Public property IsDisposed Gets whether the an object is disposed. (Inherited from INotifyObjectDisposed.)
Public property IsDisposing Gets whether an object is disposing. (Inherited from INotifyObjectDisposing.)
Public property IsSafe Gets or sets whether the safe control entry is 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 Name Gets or sets the name of the safe control entry. This property is used at design-time only.
Public property NamespaceName Gets or sets the namespace of the safe control entry.
Public property ProjectItem Gets a reference to the parent project item.
Public property TypeName Gets or sets the type name of the safe control entry.

Top

Events

  Name Description
Public event Disposed Occurs when an object is disposed. (Inherited from INotifyObjectDisposed.)
Public event Disposing Occurs when an object is being disposed. (Inherited from INotifyObjectDisposing.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

Remarks

The safe control entry is added only when the parent project item is included in the deployed package.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace