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.StringThe name of the project to be created.
mode
Type: System.UInt32Not used, pass in 0.
readOnly
Type: System.Int32Not used, pass in 0.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.