Loads or reloads a project.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Sub Load ( _
filename As String, _
location As String, _
name As String, _
flags As UInteger, _
ByRef iidProject As Guid, _
<OutAttribute> ByRef canceled As Integer _
)
'使用
Dim instance As ProjectNode
Dim filename As String
Dim location As String
Dim name As String
Dim flags As UInteger
Dim iidProject As Guid
Dim canceled As Integer
instance.Load(filename, location, name, _
flags, iidProject, canceled)
public virtual void Load(
string filename,
string location,
string name,
uint flags,
ref Guid iidProject,
out int canceled
)
public:
virtual void Load(
String^ filename,
String^ location,
String^ name,
unsigned int flags,
Guid% iidProject,
[OutAttribute] int% canceled
)
public function Load(
filename : String,
location : String,
name : String,
flags : uint,
iidProject : Guid,
canceled : int
)
Parameters
filename
Type: System.StringFile name of the project.
location
Type: System.StringFile path to the project.
name
Type: System.StringName of the project.
flags
Type: System.UInt32Flags that indicate whether this method reloads/loads a project, or creates a new one. Values are taken from __VSCREATEPROJFLAGS enumeration.
iidProject
Type: System.Guid%Unique identifier of the project. Specified for a project that is to be reloaded. Can be a null reference (Nothing in Visual Basic) if creating a new project.
canceled
Type: System.Int32%[out] returns 0 if a new project is created.
Remarks
Loads, reloads or creates a new project and the accompanying MSBuild files.
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.