IVsTextImageUtilities::LoadTextFile Method (String^, UInt32, UInt32, String^)
Visual Studio 2015
Loads the specified text file.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int LoadTextFile( String^ pszFileName, unsigned int vstffIn, [OutAttribute] unsigned int% pvstffOut, [OutAttribute] String^% pbstr )
Parameters
- pszFileName
-
Type:
System::String^
[in] Name of file to load.
- vstffIn
-
Type:
System::UInt32
[in] Instructions for text format and detection
- pvstffOut
-
Type:
System::UInt32
[out] The format used.
- pbstr
-
Type:
System::String^
[out] The text from the file.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textfind.idl:
HRESULT IVsTextImageUtilities::LoadTextFile( [in] LPCOLESTR pszFilename, [in] VSTFF vstffIn, [out] VSTFF * pvstffOut, [out, retval] BSTR * pbstr );
Show: