I can check if the behavior is set or not with:
Attribute.GetCustomAttribute(typeof(MyService), typeof(ServiceBehavior))
How do I check if a specific property is defined and set within the ServiceBehavior attribute? for example the IncludeExceptionDetailInFaults:
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
Actually it was simple, I needed to cast the attribute and then check for the property:
The service would be something like:
Hope this helps someone.