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

AF SDK Reference

AFDefaultDeliveryFormats.Item Property (Guid)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDefaultDeliveryFormats.Item Property (Guid)
Returns the item in the collection associated with the passed in ID.
Gets the item with the specified id.

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

Syntax

public AFDeliveryFormat this[
	Guid id
] { get; }
Public ReadOnly Default Property Item ( 
	id As Guid
) As AFDeliveryFormat
	Get

Dim instance As AFDefaultDeliveryFormats
Dim id As Guid
Dim value As AFDeliveryFormat

value = instance(id)
public:
property AFDeliveryFormat^ default[Guid id] {
	AFDeliveryFormat^ get (Guid id);
}
member Item : AFDeliveryFormat with get

Parameters

id
Type: SystemGuid
The id whose item to get.

Property Value

Type: AFDeliveryFormat
The item with the specified id. If the specified id is not found, attempting to get it returns the default value for the item type T.

Remarks

The Item property is intended to be used to retrieve a specific object in the collection by the specified id. If you want to enumerate the collection, you can use the GetEnumerator property in the standard way. With Microsoft® Visual Basic® and C#, this property is automatically used within For Each In constructs. This property provides the ability to access a specified item in the collection by using the following syntax: myCollection[id].

If the id is not found, then this property returns the appropriate default value for the item type T; for example, zero (0) for integer types, for Boolean types, and for reference types.

If the collection has a lookup dictionary, the ids in the dictionary are compared with the specified id. If there is no lookup dictionary, the id of each item is first extracted and then compared with the specified id.

Retrieving the value of this property is an O(1) operation.

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