OAFileItem.SaveAs Method

Saves the project item.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Automation
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Overrides Function SaveAs ( _
    fileName As String _
) As Boolean
'Usage
Dim instance As OAFileItem
Dim fileName As String
Dim returnValue As Boolean

returnValue = instance.SaveAs(fileName)
public override bool SaveAs(
    string fileName
)
public:
virtual bool SaveAs(
    String^ fileName
) override
public override function SaveAs(
    fileName : String
) : boolean
abstract SaveAs : 
        fileName:string -> bool 
override SaveAs : 
        fileName:string -> bool 

Parameters

  • fileName
    Type: System.String
    The file name with which to save the solution, project, or project item. If the file already exists, it is overwritten.

Return Value

Type: System.Boolean

Implements

ProjectItem.SaveAs(String)

.NET Framework Security

See Also

Reference

OAFileItem Class

OAFileItem Members

Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace