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)
Available in Sandboxed Solutions: No
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.StringA string with the error message.