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

AF SDK Reference

AFDefaultDeliveryFormats.Insert Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDefaultDeliveryFormats.Insert Method
Inserts an item into the collection at the specified index.

Namespace:  OSIsoft.AF.Notification
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public void Insert(
	int index,
	AFDeliveryFormat item
)
Public Sub Insert ( 
	index As Integer,
	item As AFDeliveryFormat
)

Dim instance As AFDefaultDeliveryFormats
Dim index As Integer
Dim item As AFDeliveryFormat

instance.Insert(index, item)
public:
virtual void Insert(
	int index, 
	AFDeliveryFormat^ item
) sealed
abstract Insert : 
        index : int * 
        item : AFDeliveryFormat -> unit 
override Insert : 
        index : int * 
        item : AFDeliveryFormat -> unit 

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted. If -1, then item is added to the end of the collection.
item
Type: OSIsoft.AF.NotificationAFDeliveryFormat
The object to insert. The value cannot be .

Implements

IListTInsert(Int32, T)

Exceptions

ExceptionCondition
ArgumentOutOfRangeException The index parameter value is not a valid index in the collection.
NotSupportedException The collection is read-only or the collection is a fixed size.

Remarks

The collection does not accept values and allows duplicate items.

If index is equal to Count or -1, then item is added to the end of the collection.

This method is an O(n) operation, where n is Count.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

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