XmlForm.SetSaveAsDialogFilename(String) Method
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.
Sets the default filename for the SaveAs dialog box.
public:
abstract void SetSaveAsDialogFilename(System::String ^ filename);
public abstract void SetSaveAsDialogFilename (string filename);
abstract member SetSaveAsDialogFilename : string -> unit
Public MustOverride Sub SetSaveAsDialogFilename (filename As String)
Parameters
- filename
- String
The name of the file.
Exceptions
The file cannot be found.
The parameter passed to this method is a null reference (Nothing in Visual Basic).
The parameter passed to this method is not valid. For example, it is of the wrong type or format.
Examples
In the following code example, the SetSaveAsDialogFilename method of the XmlForm class is used to set the filename for the SaveAs dialog box to "SampleFile".
this.SetSaveAsDialogFilename("SampleFile");
Me.SetSaveAsDialogFilename("SampleFile")
Remarks
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.