Executes the supplied wizard against the supplied node.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function RunWizard ( _
parentNode As HierarchyNode, _
itemName As String, _
wizardToRun As String, _
dlgOwner As IntPtr _
) As VSADDRESULT
'使用
Dim instance As ProjectNode
Dim parentNode As HierarchyNode
Dim itemName As String
Dim wizardToRun As String
Dim dlgOwner As IntPtr
Dim returnValue As VSADDRESULT
returnValue = instance.RunWizard(parentNode, _
itemName, wizardToRun, dlgOwner)
public virtual VSADDRESULT RunWizard(
HierarchyNode parentNode,
string itemName,
string wizardToRun,
IntPtr dlgOwner
)
public:
virtual VSADDRESULT RunWizard(
HierarchyNode^ parentNode,
String^ itemName,
String^ wizardToRun,
IntPtr dlgOwner
)
public function RunWizard(
parentNode : HierarchyNode,
itemName : String,
wizardToRun : String,
dlgOwner : IntPtr
) : VSADDRESULT
Parameters
parentNode
Type: Microsoft.VisualStudio.Package.HierarchyNodeThe node against which to run the wizard.
itemName
Type: System.StringThe name of the file supplied by the user.
wizardToRun
Type: System.StringThe name of the wizard to run.
dlgOwner
Type: System.IntPtrThe owner of the dialog box.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.VSADDRESULT
ADDRESULT_Success() if the wizard was successful, ADDRESULT_Failure() if it failed, ADDRESULT_Cancel() if it was canceled.
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.