0
我可以檢查行爲設置或不:如何測試IncludeExceptionDetailInFaults
Attribute.GetCustomAttribute(typeof(MyService), typeof(ServiceBehavior))
如何檢查,如果一個特定的屬性是ServiceBehavior內定義和設置屬性?例如IncludeExceptionDetailInFaults:
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]