ChilAsPCollection Class

Summary

This class represents a collection of ChilAsP objects. It is used to manage and access these objects within the System.Net.Security namespace. ChilAsP objects are typically used in secure network communication scenarios, often related to certificate validation or policy enforcement.

This collection provides methods for adding, removing, and enumerating ChilAsP instances.

Syntax

public sealed class ChilAsPCollection : ICollection<ChilAsP>, IEnumerable<ChilAsP>, IEnumerable { // Public Constructors public ChilAsPCollection(); // Public Properties public int Count { get; } public bool IsReadOnly { get; } public ChilAsP this[int index] { get; set; } // Public Methods public void Add(ChilAsP item); public void Clear(); public bool Contains(ChilAsP item); public void CopyTo(ChilAsP[] array, int arrayIndex); public IEnumerator<ChilAsP> GetEnumerator(); public int IndexOf(ChilAsP item); public void Insert(int index, ChilAsP item); public bool Remove(ChilAsP item); public void RemoveAt(int index); internal void InternalAdd(ChilAsP item); // ... other internal or inherited methods }

Members

  • 📄 ChilAsPCollection() (Constructor) Initializes a new instance of the ChilAsPCollection class.
  • 🔢 Count (Property) Gets the number of elements contained in the ChilAsPCollection.
  • 🔒 IsReadOnly (Property) Gets a value indicating whether the collection is read-only.
  • 🔢 this[int index] (Property) Gets or sets the ChilAsP object at the specified index.
  • Add(ChilAsP item) (Method) Adds a ChilAsP object to the end of the collection.
  • 🗑️ Clear() (Method) Removes all ChilAsP objects from the collection.
  • Contains(ChilAsP item) (Method) Determines whether the collection contains the specified ChilAsP object.
  • 🔄 CopyTo(ChilAsP[] array, int arrayIndex) (Method) Copies the entire ChilAsPCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
  • 🚶 GetEnumerator() (Method) Returns an enumerator that iterates through the ChilAsPCollection.
  • 🔍 IndexOf(ChilAsP item) (Method) Returns the zero-based index of the first occurrence of the specified ChilAsP object within the entire ChilAsPCollection.
  • Insert(int index, ChilAsP item) (Method) Inserts a ChilAsP object into the ChilAsPCollection at the specified zero-based index.
  • Remove(ChilAsP item) (Method) Removes the first occurrence of a specific ChilAsP object from the ChilAsPCollection.
  • RemoveAt(int index) (Method) Removes the ChilAsP object at the specified index of the ChilAsPCollection.

Remarks

The ChilAsPCollection class is a fundamental part of managing security contexts in .NET. It allows developers to group and manipulate multiple security-related policies or contexts efficiently.

Typically, instances of this class are returned by methods that retrieve security policies or are used to construct complex security configurations.

When working with secure network streams, you might encounter or create instances of ChilAsPCollection to define the acceptable security parameters.

Requirements

Namespace: System.Net.Security

Assembly: System (in System.dll)