다음을 통해 공유


IVsTextImageUtilities.SaveTextImageToMemory Method

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

Syntax

‘선언
Function SaveTextImageToMemory ( _
    pImage As IVsTextImage, _
    vstffIn As UInteger, _
    cbData As UInteger, _
    <OutAttribute> pData As Byte(), _
    <OutAttribute> ByRef pcbWritten As UInteger, _
    <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 pcbWritten As UInteger
Dim pvstffOut As UInteger
Dim returnValue As Integer

returnValue = instance.SaveTextImageToMemory(pImage, _
    vstffIn, cbData, pData, pcbWritten, _
    pvstffOut)
int SaveTextImageToMemory(
    IVsTextImage pImage,
    uint vstffIn,
    uint cbData,
    byte[] pData,
    out uint pcbWritten,
    out uint pvstffOut
)
int SaveTextImageToMemory(
    [InAttribute] IVsTextImage^ pImage, 
    [InAttribute] unsigned int vstffIn, 
    [InAttribute] unsigned int cbData, 
    [OutAttribute] array<unsigned char>^ pData, 
    [OutAttribute] unsigned int% pcbWritten, 
    [OutAttribute] unsigned int% pvstffOut
)
abstract SaveTextImageToMemory : 
        pImage:IVsTextImage * 
        vstffIn:uint32 * 
        cbData:uint32 * 
        pData:byte[] byref * 
        pcbWritten:uint32 byref * 
        pvstffOut:uint32 byref -> int 
function SaveTextImageToMemory(
    pImage : IVsTextImage, 
    vstffIn : uint, 
    cbData : uint, 
    pData : byte[], 
    pcbWritten : uint, 
    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::SaveTextImageToMemory(
   [in] IVsTextImage * pImage,
   [in] VSTFF vstffIn,
   [in] DWORD cbData,
   [out, size_is(cbData), length_is(*pcbWritten)] BYTE * pData,
   [out] DWORD * pcbWritten,
   [out] VSTFF * pvstffOut
);

.NET Framework Security

See Also

Reference

IVsTextImageUtilities Interface

IVsTextImageUtilities Members

Microsoft.VisualStudio.TextManager.Interop Namespace