GetUserDataType
Pushes the name of the current user data type onto the stack.
<wf:Operation Name="GetUserDataType" />
None.
String containing the current user data type in assembly-qualified format.
Unlike GetActivityType, this operation does not use the assembly-qualified class name format; instead, it pushes only the type name:
MyLibrary.MyObject
Note
If you use the assembly-qualified class name format as a constant when comparing values it will always evaluate to false
.
When this operation is performed inside of a filter, derived user data types are always matched as well.
The following sample contains an event filter expression that will evaluate to true
for MyLibrary.MyObject
instances and for any instances from classes that derive from MyLibrary.MyObject
.
<ic:Filter>
<ic:Expression>
<wf:Operation Name="GetUserDataType" />
<ic:Operation Name="Constant">
<ic:Argument>MyLibrary.MyObject</ic:Argument>
</ic:Operation>
<ic:Operation Name="Equals" />
</ic:Expression>
</ic:Filter>