Share via


FormError.Name Property (Microsoft.Office.InfoPath)

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
'Usage
Dim instance As FormError
Dim value As String

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

Property Value

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 null.

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 Office InfoPath 2007 or in a Web browser.

See Also

Reference

FormError Class
FormError Members
Microsoft.Office.InfoPath Namespace