WriteExceptionsToEventLog Property

MySQL Connector/Net

Gets or sets a value indicating whether [write exceptions to event log].

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public bool WriteExceptionsToEventLog { get; set; }
Visual Basic (Declaration)
Public Property WriteExceptionsToEventLog As Boolean
Visual C++
public:
property bool WriteExceptionsToEventLog {
	bool get ();
	void set (bool value);
}

Field Value

true if exceptions should be written to the event log; otherwise, false.

Examples

CopyC#
<roleManager defaultProvider="MySqlProvider"
  enabled="true">
  <providers>
    <add
      name="MySqlProvider"
      type="MySql.Web.Security.MySQLRoleProvider"
      connectionStringName="LocalMySqlServices"
      writeExceptionsToEventLog="false" 
      applicationName="MyApplication" />
  </providers>
</roleManager>

See Also