Freigeben über


VsMSBuildTaskFileManagerClass.GetFileContents(String, String) Method

Definition

Gets the contents of the specified file, based on what is in memory or if not in memory, what is on disk.

public:
 virtual int GetFileContents(System::String ^ wszFilename, [Runtime::InteropServices::Out] System::String ^ % pbstrFileContents) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildTaskFileManager::GetFileContents;
public:
 virtual int GetFileContents(System::String ^ wszFilename, [Runtime::InteropServices::Out] System::String ^ % pbstrFileContents);
 virtual int GetFileContents(std::wstring const & wszFilename, [Runtime::InteropServices::Out] std::wstring const & & pbstrFileContents);
public virtual int GetFileContents (string wszFilename, out string pbstrFileContents);
abstract member GetFileContents : string * string -> int
override this.GetFileContents : string * string -> int
Public Overridable Function GetFileContents (wszFilename As String, ByRef pbstrFileContents As String) As Integer

Parameters

wszFilename
String

[in] The name of the file from which to retrieve contents.

pbstrFileContents
String

[out] The contents retrieved from the specified file.

Returns

Returns S_OK if the method is successful, E_FAIL if the method fails.

Implements

Applies to