VCWizCtlClass.GetOpenFileNameViaDlg Method
Gets the name of a file to open using a dialog box.
Namespace: Microsoft.VisualStudio.VsWizard
Assembly: Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
Syntax
'Declaration
Public Overridable Function GetOpenFileNameViaDlg ( _
bstrDlgTitle As String, _
bstrInitialDir As String, _
bstrFilter As String, _
bstrFileName As String _
) As String
public virtual string GetOpenFileNameViaDlg(
string bstrDlgTitle,
string bstrInitialDir,
string bstrFilter,
string bstrFileName
)
public:
virtual String^ GetOpenFileNameViaDlg(
[InAttribute] String^ bstrDlgTitle,
[InAttribute] String^ bstrInitialDir,
[InAttribute] String^ bstrFilter,
[InAttribute] String^ bstrFileName
)
abstract GetOpenFileNameViaDlg :
bstrDlgTitle:string *
bstrInitialDir:string *
bstrFilter:string *
bstrFileName:string -> string
override GetOpenFileNameViaDlg :
bstrDlgTitle:string *
bstrInitialDir:string *
bstrFilter:string *
bstrFileName:string -> string
public function GetOpenFileNameViaDlg(
bstrDlgTitle : String,
bstrInitialDir : String,
bstrFilter : String,
bstrFileName : String
) : String
Parameters
bstrDlgTitle
Type: System.StringRequired. A string containing the dialog box title.
bstrInitialDir
Type: System.StringRequired. A string containing the initial directory for the Open File dialog box.
bstrFilter
Type: System.StringRequired. A string containing the file filter criteria displayed in the Files of type edit box (for example, Visual C++ Header files (*.h)) in the Open File dialog box.
bstrFileName
Type: System.StringRequired. A string containing the name of the file display in the File Name edit box in the Open File dialog box.
Return Value
Type: System.String
Implements
IVCWizCtlUI.GetOpenFileNameViaDlg(String, String, String, String)
.NET Framework Security
- 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.