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

AF SDK Reference

AFAttributeVariable Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFAttributeVariable Class
The AFAttributeVariable defines an attribute variable used in an analysis rule.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.AnalysisAFAttributeVariable

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

Syntax

[SerializableAttribute]
public sealed class AFAttributeVariable : IComparable, 
	IComparable<AFAttributeVariable>, IEquatable<AFAttributeVariable>
<SerializableAttribute>
Public NotInheritable Class AFAttributeVariable
	Implements IComparable, IComparable(Of AFAttributeVariable), 
	IEquatable(Of AFAttributeVariable)

Dim instance As AFAttributeVariable
[SerializableAttribute]
public ref class AFAttributeVariable sealed : IComparable, 
	IComparable<AFAttributeVariable^>, IEquatable<AFAttributeVariable^>
[<SealedAttribute>]
[<SerializableAttribute>]
type AFAttributeVariable =  
    class
        interface IComparable
        interface IComparable<AFAttributeVariable>
        interface IEquatable<AFAttributeVariable>
    end

The AFAttributeVariable type exposes the following members.

Constructors

Properties

  NameDescription
Public property
AnalysisRuleVariableMaps
Returns a list of analysis rules the attribute is associated with.
Public property
Attribute
Returns the mapped attribute.
Public property
AttributeTemplate
Returns the mapped attribute.
Public property
IsConfigured
Returns if the variable has been set.
Public property
IsDynamic
Returns if the attribute for the variable corresponds to a dynamic attribute.
Public property
IsInput
Returns if the variable is an input (either required or optional).
Public property
IsIntermediate
Returns if the variable is an intermediate variable.
Public property
IsOptional
Returns if the variable is an optional input.
Public property
IsOutput
Returns if the variable is an output.
Public property
IsRequired
Returns if the variable is a required input.
Public property
MappedName
Returns the full path for the mapped attribute.
Public property
Name
Returns the variable name. For an intermediate variable, it always returns the output name.
Public property
VariableType
Returns the variable type.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(AFAttributeVariable)
Compares this instance with a specified AFAttributeVariable.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(AFAttributeVariable)
Indicates whether the current object is equal to another object of the same type.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
MapAttribute
Maps the variable to the specified attribute specified by the relative path and target.
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
GreaterThan
The greater than relation operator (>) compares its operands to determine which one is greater than the other.
Public operatorStatic member
GreaterThanOrEqual
The greater than or equal relation operator (>=) compares its operands to determine which one is greater than or equal to the other.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.
Public operatorStatic member
LessThan
The less than relation operator (<) compares its operands to determine which one is less than the other.
Public operatorStatic member
LessThanOrEqual
The less than or equal relation operator (<=) compares its operands to determine which one is less than or equal to the other.

Version Information

AFSDK


See Also

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