IVsMSBuildTaskFileManager.GetFileContents(String, String) Yöntem

Tanım

Belirtilen bir dosyanın içeriğini alır.

public:
 int GetFileContents(System::String ^ wszFilename, [Runtime::InteropServices::Out] System::String ^ % pbstrFileContents);
int GetFileContents(std::wstring const & wszFilename, [Runtime::InteropServices::Out] std::wstring const & & pbstrFileContents);
public int GetFileContents (string wszFilename, out string pbstrFileContents);
abstract member GetFileContents : string * string -> int
Public Function GetFileContents (wszFilename As String, ByRef pbstrFileContents As String) As Integer

Parametreler

wszFilename
String

'ndaki Alınacak dosyanın adı.

pbstrFileContents
String

dışı Dosyanın içeriği.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

Bu yöntem, bellek içinde değilse, belirtilen dosyanın içeriğini belleğe veya diskte ne olduğunu döndürür.

COM Imzası

Vsshell90. IDL adresinden:

HRESULT GetFileContents(  
    [in] LPCOLESTR wszFilename,  
    [out, retval] BSTR* pbstrFileContents  
);  

Şunlara uygulanır