IVsTextImageUtilities.LoadTextFile 方法

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function LoadTextFile ( _
    pszFileName As String, _
    vstffIn As UInteger, _
    <OutAttribute> ByRef pvstffOut As UInteger, _
    <OutAttribute> ByRef pbstr As String _
) As Integer
int LoadTextFile(
    string pszFileName,
    uint vstffIn,
    out uint pvstffOut,
    out string pbstr
)
int LoadTextFile(
    [InAttribute] String^ pszFileName, 
    [InAttribute] unsigned int vstffIn, 
    [OutAttribute] unsigned int% pvstffOut, 
    [OutAttribute] String^% pbstr
)
abstract LoadTextFile : 
        pszFileName:string * 
        vstffIn:uint32 * 
        pvstffOut:uint32 byref * 
        pbstr:string byref -> int
function LoadTextFile(
    pszFileName : String, 
    vstffIn : uint, 
    pvstffOut : uint, 
    pbstr : String
) : int

参数

  • pszFileName
    类型:String

    [in] 文件的名称要加载的。

  • vstffIn
    类型:UInt32

    [in] 布局的,检测命令

  • pvstffOut
    类型:UInt32%

    [out] 文件的文本。

  • pbstr
    类型:String%

    [out]

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textfind.idl:

HRESULT IVsTextImageUtilities::LoadTextFile(
   [in] LPCOLESTR pszFilename,
   [in] VSTFF vstffIn,
   [out] VSTFF * pvstffOut,
   [out, retval] BSTR * pbstr
);

.NET Framework 安全性

请参阅

参考

IVsTextImageUtilities 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间