Component.IsPublishedInContext to determine if the Component is published but the value returns true irrespective of the current
TargetType where the Component is being published to.
- Component is Published as a DCP to "Staging"
- Component is NOT Published to "Live"
truewhen being executed on "Live"
How do I figure out if the Component is published to "Live"?