Share via


ISafeControlCollection Interface

Represents a collection of safe controls.

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

Syntax

'Declaration
Public Interface ISafeControlCollection _
    Inherits IList(Of ISafeControl), ICollection(Of ISafeControl),  _
    IEnumerable(Of ISafeControl), IEnumerable
public interface ISafeControlCollection : IList<ISafeControl>, 
    ICollection<ISafeControl>, IEnumerable<ISafeControl>, IEnumerable

The ISafeControlCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection. (Inherited from ICollection<ISafeControl>.)
Public property IsReadOnly Gets a value indicating whether the ICollection is read-only. (Inherited from ICollection<ISafeControl>.)
Public property Item Gets or sets the element at the specified index. (Inherited from IList<ISafeControl>.)

Top

Methods

  Name Description
Public method Add() Adds a new safe control to the collection.
Public method Add(UTP) Adds an item to the ICollection. (Inherited from ICollection<ISafeControl>.)
Public method Clear Removes all items from the ICollection. (Inherited from ICollection<ISafeControl>.)
Public method Contains Determines whether the ICollection contains a specific value. (Inherited from ICollection<ISafeControl>.)
Public method CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection<ISafeControl>.)
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<ISafeControl>.)
Public method IndexOf Determines the index of a specific item in the IList. (Inherited from IList<ISafeControl>.)
Public method Insert Inserts an item to the IList at the specified index. (Inherited from IList<ISafeControl>.)
Public method Remove Removes the first occurrence of a specific object from the ICollection. (Inherited from ICollection<ISafeControl>.)
Public method RemoveAt Removes the IList item at the specified index. (Inherited from IList<ISafeControl>.)

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