Freigeben über


IVsTextImageUtilities.LoadTextFile(String, UInt32, UInt32, String) Method

Definition

Loads the specified text file.

public:
 int LoadTextFile(System::String ^ pszFileName, System::UInt32 vstffIn, [Runtime::InteropServices::Out] System::UInt32 % pvstffOut, [Runtime::InteropServices::Out] System::String ^ % pbstr);
int LoadTextFile(std::wstring const & pszFileName, unsigned int vstffIn, [Runtime::InteropServices::Out] unsigned int & pvstffOut, [Runtime::InteropServices::Out] std::wstring const & & pbstr);
public int LoadTextFile (string pszFileName, uint vstffIn, out uint pvstffOut, out string pbstr);
abstract member LoadTextFile : string * uint32 * uint32 * string -> int
Public Function LoadTextFile (pszFileName As String, vstffIn As UInteger, ByRef pvstffOut As UInteger, ByRef pbstr As String) As Integer

Parameters

pszFileName
String

[in] Name of file to load.

vstffIn
UInt32

[in] Instructions for text format and detection

pvstffOut
UInt32

[out] The format used.

pbstr
String

[out] The text from the file.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textfind.idl:

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

Applies to