Share via


VsMSBuildTaskFileManagerClass.GetFileDocData Method

Retrieves the live punkDocData object for the specified file if the file is registered in the running document table (RDT).

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 GetFileDocData ( _
    wszFilename As String, _
    <OutAttribute> ByRef ppunkDocData As IntPtr _
) As Integer
public virtual int GetFileDocData(
    string wszFilename,
    out IntPtr ppunkDocData
)
public:
virtual int GetFileDocData(
    [InAttribute] String^ wszFilename, 
    [OutAttribute] IntPtr% ppunkDocData
)
abstract GetFileDocData : 
        wszFilename:string * 
        ppunkDocData:IntPtr byref -> int  
override GetFileDocData : 
        wszFilename:string * 
        ppunkDocData:IntPtr byref -> int
public function GetFileDocData(
    wszFilename : String, 
    ppunkDocData : IntPtr
) : int

Parameters

  • wszFilename
    Type: System.String

    [in] The name of the file for which to retrieve the punkDocData object.

  • ppunkDocData
    Type: System.IntPtr%

    [out] The live object for the specified file, or null if the specified file is not registered in the RDT.

Return Value

Type: System.Int32
Returns S_OK if the method is successful, E_FAIL if the method fails.

Implements

IVsMSBuildTaskFileManager.GetFileDocData(String, IntPtr%)

.NET Framework Security

See Also

Reference

VsMSBuildTaskFileManagerClass Class

Microsoft.VisualStudio.Shell.Interop Namespace