IVsTextImageUtilities.SaveTextImageToMemory Method
Saves a text image to memory.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaração
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
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
- pImage
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextImage
[in] The text image.
- vstffIn
Type: System.UInt32
[in] Instructions for text format and detection.
- cbData
Type: System.UInt32
[in] The size of the data in bytes.
- pData
Type: array<System.Byte[]
[out] The data.
- pcbWritten
Type: System.UInt32%
[out] The length of the data written to memory.
- pvstffOut
Type: System.UInt32%
[out] The format used.
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
- 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.