WriteExceptionsToEventLog Property

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
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.8.4.0

Syntax

C#
public bool WriteExceptionsToEventLog { get; set; }
Visual Basic
Public Property WriteExceptionsToEventLog As Boolean
	Get
	Set
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

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

See Also