IPolicyItemCollection Interface
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a collection of code access security (CAS) policy items.
Namespace: Microsoft.VisualStudio.SharePoint.Packages
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Public Interface IPolicyItemCollection _
Inherits IList(Of IPolicyItem), ICollection(Of IPolicyItem), _
IEnumerable(Of IPolicyItem), IEnumerable
public interface IPolicyItemCollection : IList<IPolicyItem>,
ICollection<IPolicyItem>, IEnumerable<IPolicyItem>, IEnumerable
The IPolicyItemCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<IPolicyItem>.) | |
IsReadOnly | Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<IPolicyItem>.) | |
Item | Gets or sets the element at the specified index. (Inherited from IList<IPolicyItem>.) |
Top
Methods
Name | Description | |
---|---|---|
Add() | Adds a new policy item. | |
Add(T) | Adds an item to the ICollection<T>. (Inherited from ICollection<IPolicyItem>.) | |
Clear | Removes all items from the ICollection<T>. (Inherited from ICollection<IPolicyItem>.) | |
Contains | Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<IPolicyItem>.) | |
CopyTo | Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<IPolicyItem>.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IPolicyItem>.) | |
IndexOf | Determines the index of a specific item in the IList<T>. (Inherited from IList<IPolicyItem>.) | |
Insert | Inserts an item to the IList<T> at the specified index. (Inherited from IList<IPolicyItem>.) | |
Remove | Removes the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<IPolicyItem>.) | |
RemoveAt | Removes the IList<T> item at the specified index. (Inherited from IList<IPolicyItem>.) |
Top
Remarks
For more information, see Code Access Security.