IVsPersistentTextImage.Image_LoadText 方法

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

语法

声明
Function Image_LoadText ( _
    pszText As String, _
    iLength As Integer, _
    dwFlags As UInteger _
) As Integer
int Image_LoadText(
    string pszText,
    int iLength,
    uint dwFlags
)
int Image_LoadText(
    [InAttribute] String^ pszText, 
    [InAttribute] int iLength, 
    [InAttribute] unsigned int dwFlags
)
abstract Image_LoadText : 
        pszText:string * 
        iLength:int * 
        dwFlags:uint32 -> int
function Image_LoadText(
    pszText : String, 
    iLength : int, 
    dwFlags : uint
) : int

参数

  • pszText
    类型:String

    [in]

  • iLength
    类型:Int32

    [in]

  • dwFlags
    类型:UInt32

    [in]

返回值

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

备注

COM 签名

从 textmgr.idl:

HRESULT IVsPersistentTextImage::Image_LoadText(
   [in] const WCHAR *pszText,
   [in] INT iLength,
   [in] DWORD dwFlags
);

.NET Framework 安全性

请参阅

参考

IVsPersistentTextImage 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间