IVCWizCtlUI.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
‘선언
Function GetOpenFileNameViaDlg ( _
bstrDlgTitle As String, _
bstrInitialDir As String, _
bstrFilter As String, _
bstrFileName As String _
) As String
string GetOpenFileNameViaDlg(
string bstrDlgTitle,
string bstrInitialDir,
string bstrFilter,
string bstrFileName
)
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
function GetOpenFileNameViaDlg(
bstrDlgTitle : String,
bstrInitialDir : String,
bstrFilter : String,
bstrFileName : String
) : String
Parameters
- bstrDlgTitle
Type: System.String
Required. A string containing the dialog box title.
- bstrInitialDir
Type: System.String
Required. A string containing the initial directory for the Open File dialog box.
- bstrFilter
Type: System.String
Required. 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.String
Required. 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
.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.