cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I use an Accessor, on a sensor, to get a .NET property

marcia_b
Visitor

I have a sensor on a .NET method with is working correctly and we see the method in the PurePath.

I need to capture part of argument with an Accessor, for example e.Task.Batch.Name (which is a property) works in .NET code, but not as an Accessor. We always get null in the PurePath argument column. We have tried using () at the end, but get the same results.

1 REPLY 1

greg_seaton
Helper

You need to start it with "get_" and end with "()". So for your example, the accessor for e would be "get_Batch().get_Name()", without the quotes.

Here's an example with properties CurrentUser and Name.