Searching for AF Attributes

Discussion created by pcloes on Sep 11, 2013
Latest reply on Sep 13, 2013 by tseiferth

I am trying to search AF for attributes & am getting a TypeLoadException error... code:


Dim alsSearchReturn As OSIsoft.AF.AFNamedCollectionList(Of OSIsoft.AF.Asset.AFAttribute)


        ' Search the all attributes


        strSearch = "Contents*"


        alsSearchReturn = OSIsoft.AF.Asset.AFAttribute.FindElementAttributes(DB, Nothing, "*", Nothing, Nothing, OSIsoft.AF.Asset.AFElementType.None, strSearch, Nothing, TypeCode.String, True, OSIsoft.AF.AFSortField.Name, OSIsoft.AF.AFSortOrder.Ascending, 1000)


Any suggestions?