Share via


ItemPicker.ShowCannotBeBlankError method

Sets the proper error message when the item picker control is required on an InfoPath form rendered on the server and the form is submitted without filling in a value for the control.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub ShowCannotBeBlankError ( _
    errorMessage As String _
)
'Usage
Dim instance As ItemPicker
Dim errorMessage As String

instance.ShowCannotBeBlankError(errorMessage)
public void ShowCannotBeBlankError(
    string errorMessage
)

Parameters

  • errorMessage
    Type: System.String

    A string with the error message.

See also

Reference

ItemPicker class

ItemPicker members

Microsoft.SharePoint.WebControls namespace