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

AF SDK Reference

AFDefaultDeliveryFormats.Contains Method (AFDeliveryFormat)

AFDefaultDeliveryFormats.Contains Method (AFDeliveryFormat)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDefaultDeliveryFormats.Contains Method (AFDeliveryFormat)
This method determines whether the collection contains a specific item.

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

Syntax

public bool Contains(
	AFDeliveryFormat item
)
Public Function Contains ( 
	item As AFDeliveryFormat
) As Boolean

Dim instance As AFDefaultDeliveryFormats
Dim item As AFDeliveryFormat
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public:
virtual bool Contains(
	AFDeliveryFormat^ item
) sealed
abstract Contains : 
        item : AFDeliveryFormat -> bool 
override Contains : 
        item : AFDeliveryFormat -> bool 

Parameters

item
Type: OSIsoft.AF.NotificationAFDeliveryFormat
The item sought in the collection.

Return Value

Type: Boolean
Returns if the collection contains the item; otherwise, .

Implements

ICollectionTContains(T)

Remarks

This method determines equality using the default comparer Generic System.Collections.Generic.Comparer.Default. This comparer checks whether type T implements Generic System.IComparable and uses that implementation if available. If not, this comparer checks whether type T implements System.IComparable. If type T does not implement either interface, this method uses Equals(Object).

This method performs a linear search; therefore, the average execution time is proportional to Count. That is, 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
Related Links
TitleResults for “How to create a CRG?”Also Available in