Compartir a través de


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
Public MustOverride ReadOnly Property Filename As String
    Get
'Usage
Dim instance As SaveEventArgs
Dim value As String

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

Property Value

Type: System.String
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 InfoPath Filler.

See Also

Reference

SaveEventArgs Class

SaveEventArgs Members

Microsoft.Office.InfoPath Namespace