SaveEventArgs.Filename Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the file name to be used in the event handler for the Save event.
public:
abstract property System::String ^ Filename { System::String ^ get(); };
public abstract string Filename { get; }
member this.Filename : string
Public MustOverride ReadOnly Property Filename As String
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 InfoPath Filler.