Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFNamedCollectionList(T).AsReadOnly Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNamedCollectionList(T).AsReadOnly Method
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: IListT
Returns 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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in