FormError.Name Property

Gets the name of the FormError object.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property Name As String
    Get
'Usage
Dim instance As FormError
Dim value As String

value = instance.Name
public abstract string Name { get; }

Property Value

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

Remarks

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.

See Also

Reference

FormError Class

FormError Members

Microsoft.Office.InfoPath Namespace