ErrorConstant Property
ErrorConstant Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. The low-priority error code, returned as a LocalizableErrors Enumeration. For a list of enumeration values and descriptions, see LocalizableErrors Enumeration.
Applies to
Syntax
Visual Basic .NET
Property ErrorConstant As Integer
C#
int ErrorConstant
Remarks
This property is read-only.
Examples
Visual Basic .NET
The following example shows a ControlError Event handler function that displays the error type.
Private Sub OnControlError(ByVal o As Object, ByVal e As EventArgs) _ Handles treeView.ControlError ' Declare the ControlEventArgs object. Dim evtArgs As ControlEventArgs ' Cast e to a ControlEventArgs object. evtArgs = CType(e, ControlEventArgs) Debug.WriteLine("Error constant: " + evtArgs.ErrorConstant) End Sub
C#
The following example shows a ControlError Event handler function that displays the error type.
void OnControlError(object o, EventArgs e ) { // Cast e to a ControlEventArgs object. ControlEventArgs evtArgs = (ControlEventArgs)e; Debug.WriteLine("Error constant: " + evtArgs.ErrorConstant); }
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.