ValidationSummaryItem Constructor (String, String, ValidationSummaryItemType, ValidationSummaryItemSource, Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the ValidationSummaryItem class with the specified error message, header, item type, source, and context.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data.Input (in System.Windows.Controls.Data.Input.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    messageHeader As String, _
    itemType As ValidationSummaryItemType, _
    source As ValidationSummaryItemSource, _
    context As Object _
)
public ValidationSummaryItem(
    string message,
    string messageHeader,
    ValidationSummaryItemType itemType,
    ValidationSummaryItemSource source,
    Object context
)

Parameters

  • messageHeader
    Type: System.String
    The header of the item, such as the property name.
  • context
    Type: System.Object
    The context in which the error occurred.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.