Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Unsupported C# Property, use accessor instead

Solved76 views2 hours agoAutomation script
4
Thomas Remmery [SLC] [DevOps Advocate]1.04K 21 hours ago 2 Comments

Hi all,

I'm trying to wrap my head around why this piece of code in my Automation Script is causing build errors. It's only happening from Cube, in Visual Studio it builds fine.

I've defined a Property class that has a Scope (string) property. Whenever I try and access that property I'm getting the following build error from Cube (DM 10.6.5).

"Property, indexer or event 'Property.Scope' is not supported by the language; try directly calling accessor methods 'Property.get_Scope()' or 'Property.set_Scope(?)'".

If I then update the script from cube to use the get accessor in this case, the script compiles fine. But if I do the same in Visual Studio, then my build fails because I cannot explicitly call an operator or accessor. Can anyone confirm if this is an issue with Cube?

Kind regards,

Thomas Remmery [SLC] [DevOps Advocate] Selected answer as best 2 hours ago
Tom Waterbley [SLC] [DevOps Enabler] commented 5 hours ago

Hi Thomas,

Is it possible that the DMA is using an older version of the DLL that doesn't include that property yet?

Thomas Remmery [SLC] [DevOps Advocate] commented 5 hours ago

Hi Tom,
It is referencing a DevPack, using file exploerer and checking the properties I'm seeing product version 1.7.0-WFD-alpha002+837e0ed5c37627744df56b3cebecbce18d8b8b81, which is the same as the one being used by SLAutomation (checking the about pages of MediaOps)

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Thomas Remmery [SLC] [DevOps Advocate]1.04K Posted 2 hours ago 0 Comments

I solved it. if I changed the code to access another property, other than Scope, then the script does not report any errors in Cube.

Looking further into that class, I can see that the Scope property makes use of the init keyword.

Once I changed that init to set, created a new build of the DevPack and redeployed the package to my agent, I had no issues anymore.

TL;DR don't use init (see: The init keyword (C# Reference)), the compiler shipped with DM doesn't support it.

Thomas Remmery [SLC] [DevOps Advocate] Selected answer as best 2 hours ago
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin