Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the contents of the specified file, based on what is in memory or if not in memory, what is on disk.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'Declaration
Public Overridable Function GetFileContents ( _
wszFilename As String, _
<OutAttribute> ByRef pbstrFileContents As String _
) As Integer
public virtual int GetFileContents(
string wszFilename,
out string pbstrFileContents
)
public:
virtual int GetFileContents(
[InAttribute] String^ wszFilename,
[OutAttribute] String^% pbstrFileContents
)
abstract GetFileContents :
wszFilename:string *
pbstrFileContents:string byref -> int
override GetFileContents :
wszFilename:string *
pbstrFileContents:string byref -> int
public function GetFileContents(
wszFilename : String,
pbstrFileContents : String
) : int
Parameters
wszFilename
Type: String[in] The name of the file from which to retrieve contents.
pbstrFileContents
Type: String%[out] The contents retrieved from the specified file.
Return Value
Type: Int32
Returns S_OK if the method is successful, E_FAIL if the method fails.
Implements
IVsMSBuildTaskFileManager.GetFileContents(String, String%)
.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.