共用方式為


IVsTextImageUtilities.LoadTextImageFromMemory Method

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Function LoadTextImageFromMemory ( _
    pImage As IVsTextImage, _
    vstffIn As UInteger, _
    cbData As UInteger, _
    pData As Byte(), _
    <OutAttribute> ByRef pvstffOut As UInteger _
) As Integer
'用途
Dim instance As IVsTextImageUtilities
Dim pImage As IVsTextImage
Dim vstffIn As UInteger
Dim cbData As UInteger
Dim pData As Byte()
Dim pvstffOut As UInteger
Dim returnValue As Integer

returnValue = instance.LoadTextImageFromMemory(pImage, _
    vstffIn, cbData, pData, pvstffOut)
int LoadTextImageFromMemory(
    IVsTextImage pImage,
    uint vstffIn,
    uint cbData,
    byte[] pData,
    out uint pvstffOut
)
int LoadTextImageFromMemory(
    [InAttribute] IVsTextImage^ pImage, 
    [InAttribute] unsigned int vstffIn, 
    [InAttribute] unsigned int cbData, 
    [InAttribute] array<unsigned char>^ pData, 
    [OutAttribute] unsigned int% pvstffOut
)
abstract LoadTextImageFromMemory : 
        pImage:IVsTextImage * 
        vstffIn:uint32 * 
        cbData:uint32 * 
        pData:byte[] * 
        pvstffOut:uint32 byref -> int 
function LoadTextImageFromMemory(
    pImage : IVsTextImage, 
    vstffIn : uint, 
    cbData : uint, 
    pData : byte[], 
    pvstffOut : uint
) : int

Parameters

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 textfind.idl:

HRESULT IVsTextImageUtilities::LoadTextImageFromMemory(
   [in] IVsTextImage * pImage,
   [in] VSTFF vstffIn,
   [in] DWORD cbData,
   [in,size_is(cbData)] const BYTE * pData,
   [out, retval] VSTFF * pvstffOut
);

.NET Framework Security

See Also

Reference

IVsTextImageUtilities Interface

IVsTextImageUtilities Members

Microsoft.VisualStudio.TextManager.Interop Namespace