4 /// This attribute is used by FxCopBid rule to mark methods that accept format string and list of arguments that match it
5 /// FxCopBid rule uses this attribute to check if the method needs to be included in checks and to read type mappings
6 /// between the argument type to printf Type spec.
8 /// If you need to rename/remove the attribute or change its properties, make sure to update the FxCopBid rule!
10 [System.Diagnostics.ConditionalAttribute("CODE_ANALYSIS")]
11 [System.AttributeUsage(AttributeTargets.Method)]
12 internal sealed class BidMethodAttribute : Attribute
14 private bool m_enabled;
17 /// enabled by default
19 internal BidMethodAttribute()
25 /// if Enabled is true, FxCopBid rule will validate all calls to this method and require that it will have string argument;
26 /// otherwise, this method is ignored.