AFNamedCollectionList(T).AsReadOnly Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Returns a read-only IList{T} wrapper for the current collection.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public IList<T> AsReadOnly()
Public Function AsReadOnly As IList(Of T) Dim instance As AFNamedCollectionList Dim returnValue As IList(Of T) returnValue = instance.AsReadOnly()
public: IList<T>^ AsReadOnly()
member AsReadOnly : unit -> IList<'T>
Return Value
Type: IListTReturns a read-only IList{T} wrapper for the current collection.
Remarks
A collection that is read-only is simply a collection with a wrapper that prevents
modifying the collection. Therefore, if changes are made to the underlying collection,
the read-only collection reflects those changes.