ProjectNode.Load Method (String, UInt32, Int32)

Loads or reloads a project.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function Load ( _
    filename As String, _
    mode As UInteger, _
    readOnly As Integer _
) As Integer
'使用
Dim instance As ProjectNode
Dim filename As String
Dim mode As UInteger
Dim readOnly As Integer
Dim returnValue As Integer

returnValue = instance.Load(filename, _
    mode, readOnly)
public virtual int Load(
    string filename,
    uint mode,
    int readOnly
)
public:
virtual int Load(
    String^ filename, 
    unsigned int mode, 
    int readOnly
)
public function Load(
    filename : String, 
    mode : uint, 
    readOnly : int
) : int

Parameters

  • filename
    Type: System.String

    The name of the project to be created.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IPersistFileFormat.Load(String, UInt32, Int32)

Remarks

This method sets the project file to the supplied name and calls [M:Microsoft.VisualStudio.Package.ProjectNode.Reload()].

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Load Overload

Microsoft.VisualStudio.Package Namespace