FormError.Name property

Office 2013 and later

Gets the name of the FormError object.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract string Name { get; }

Property value

Type: System.String
The name specified when the error was created.

The value of the Name property is used only to identify custom errors (errors of type FormErrorType.UserSpecified) in the FormErrorCollection collection. It is not used for schema validation–generated or system-generated errors. If the type of error is schema validation generated or system generated, the Name property will return a null reference (Nothing in Visual Basic).

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.