Specifies an exception that is handled as a warning instead of an error.
Assembly: System (in System.dll)
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
If this exception is not caught, it is presented to the user as a warning message. In the constructor, you can specify the Help file and Help topic to display if the user requests more information.