다음을 통해 공유


IVsCodePageSelection.ShowEncodingDialog(String, IVsUserData) Method

Definition

Show the dialog for selecting an encoding for opening a file.

public:
 int ShowEncodingDialog(System::String ^ pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsUserData ^ pUserData);
public:
 int ShowEncodingDialog(Platform::String ^ pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsUserData ^ pUserData);
int ShowEncodingDialog(std::wstring const & pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsUserData const & pUserData);
public int ShowEncodingDialog (string pszFileName, Microsoft.VisualStudio.TextManager.Interop.IVsUserData pUserData);
abstract member ShowEncodingDialog : string * Microsoft.VisualStudio.TextManager.Interop.IVsUserData -> int
Public Function ShowEncodingDialog (pszFileName As String, pUserData As IVsUserData) As Integer

Parameters

pszFileName
String

[in] The name of the file to be opened.

pUserData
IVsUserData

[in] User data for the file to be opened.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

HRESULT IVsCodePageSelection::ShowEncodingDialog(  
   [in] LPCOLESTR pszFileName,  
   [in] IVsUserData *pUserData  
);  

Applies to