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

AF SDK Reference

AFSDKExtension Class

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFSDKExtension Class
Static class provides extension methods for classes within the AF SDK.

Inheritance Hierarchy

SystemObject
  OSIsoft.AFAFSDKExtension

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

Syntax

public static class AFSDKExtension
<ExtensionAttribute>
Public NotInheritable Class AFSDKExtension

You do not need to declare an instance of a static class in order to access its members.
[ExtensionAttribute]
public ref class AFSDKExtension abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type AFSDKExtension =  class end

The AFSDKExtension type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCode example
ChunkedByT
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerableT collections in chunks.
Public methodStatic member
FilterBy(IEnumerableAFElementTemplate, Type)
This extension method will filter a collection of AFElementTemplate items by InstanceType.
Public methodStatic member
FilterByT(IEnumerableT, AFCategory)
This extension method will filter a collection by AFCategory.
Public methodStatic member
IsGoodStatus
This extension method will indicate if the AFSyncStatus is considered a good status.
Public methodStatic member
IsRetryable
This extension method will indicate if the Exception is considered retryable.

Remarks

The methods in this class provide an implementation of extension methods for classes within the AF SDK. The majority of the methods in this class are defined as extension methods that extend an IEnumerableT of type AFObject. This means they can be called like an instance method on any object that implements IEnumerableT where T is a type of AFObject. Some methods have further restrictions on the type.

Version Information

AFSDK


See Also

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