IVsCodePageSelection.ShowEncodingDialog Method
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'宣言
Function ShowEncodingDialog ( _
pszFileName As String, _
pUserData As IVsUserData _
) As Integer
'使用
Dim instance As IVsCodePageSelection
Dim pszFileName As String
Dim pUserData As IVsUserData
Dim returnValue As Integer
returnValue = instance.ShowEncodingDialog(pszFileName, _
pUserData)
int ShowEncodingDialog(
string pszFileName,
IVsUserData pUserData
)
int ShowEncodingDialog(
[InAttribute] String^ pszFileName,
[InAttribute] IVsUserData^ pUserData
)
abstract ShowEncodingDialog :
pszFileName:string *
pUserData:IVsUserData -> int
function ShowEncodingDialog(
pszFileName : String,
pUserData : IVsUserData
) : int
Parameters
- pszFileName
Type: System.String
[in]
- pUserData
Type: Microsoft.VisualStudio.TextManager.Interop.IVsUserData
[in]
Return Value
Type: System.Int32
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
);
.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.