Пример #1
0
 public string[] BrowseAccessPaths(string itemId)
 {
     return(DoComCall(ComObject, "IOPCBrowseServerAddressSpace::BrowseAccessPaths", () =>
     {
         IEnumString enumString;
         ComObject.BrowseAccessPaths(itemId, out enumString);
         return DoComCall(enumString, "IEnumString::EnumareateAllAndRelease",
                          () => enumString.EnumareateAllAndRelease(OpcConfiguration.BatchSize).ToArray(),
                          OpcConfiguration.BatchSize);
     }, itemId));
 }