Share via


SaveEventArgs.Filename Property

Gets the file name to be used in the event handler for the Save event.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
'Usage

Property Value

The name of the file to be saved.

Remarks

If the IsSaveAs property of the SaveEventArgs object is true, and a save operation has not yet occurred, the FileName property returns an empty string. If the IsSaveAs property is true and a save operation has already occurred, the value returned by the FileName property is the file name under which the form was saved. If the IsSaveAs property is false, the FileName property returns the same value as the Uri property of the XmlForm object.

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 only from code running in forms opened in Microsoft Office InfoPath 2007.

See Also

Reference

SaveEventArgs Class
SaveEventArgs Members
Microsoft.Office.InfoPath Namespace