ISafeControlEntry Interface
Collapse the table of content
Expand the table of content

ISafeControlEntry 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 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)

public interface ISafeControlEntry : INotifyObjectDisposing, 
	INotifyObjectDisposed, INotifyPropertyChanged

The ISafeControlEntry type exposes the following members.

Public propertyAssemblyNameGets or sets the fully-qualified assembly name of the safe control entry.
Public propertyIsDisposedGets whether the an object is disposed. (Inherited from INotifyObjectDisposed.)
Public propertyIsDisposingGets whether an object is disposing. (Inherited from INotifyObjectDisposing.)
Public propertyIsSafeGets or sets whether the safe control entry is safe.
Public propertyIsSafeAgainstScriptGets or sets whether the control prevents script injection by contributors and, therefore, allows contributors to edit the control.
Public propertyNameGets or sets the name of the safe control entry. This property is used at design-time only.
Public propertyNamespaceNameGets or sets the namespace of the safe control entry.
Public propertyProjectItemGets a reference to the parent project item.
Public propertyTypeNameGets or sets the type name of the safe control entry.

Public eventDisposedOccurs when an object is disposed. (Inherited from INotifyObjectDisposed.)
Public eventDisposingOccurs when an object is being disposed. (Inherited from INotifyObjectDisposing.)
Public eventPropertyChangedOccurs when a property value changes. (Inherited from INotifyPropertyChanged.)

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

© 2016 Microsoft