Export (0) Print
Expand All

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)

'Declaration
Public MustOverride ReadOnly Property Filename As String
	Get
'Usage
Dim instance As SaveEventArgs
Dim value As String

value = instance.Filename

Property value

Type: System.String
The name of the file to be saved.

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 InfoPath Filler.

Show:
© 2014 Microsoft