IVsMSBuildTaskFileManager.GetFileDocData Method

Gets the DocData object for a file registered in the RDT.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)


Function GetFileDocData ( _
    wszFilename As String, _
    <OutAttribute> ByRef ppunkDocData As IntPtr _
) As Integer
‘사용 방법
Dim instance As IVsMSBuildTaskFileManager
Dim wszFilename As String
Dim ppunkDocData As IntPtr
Dim returnValue As Integer

returnValue = instance.GetFileDocData(wszFilename, _
int GetFileDocData(
    string wszFilename,
    out IntPtr ppunkDocData
int GetFileDocData(
    [InAttribute] String^ wszFilename, 
    [OutAttribute] IntPtr% ppunkDocData
abstract GetFileDocData : 
        wszFilename:string * 
        ppunkDocData:IntPtr byref -> int 
function GetFileDocData(
    wszFilename : String, 
    ppunkDocData : IntPtr
) : int


  • ppunkDocData
    Type: System.IntPtr%
    [out] A pointer to the DocData object interface.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code. If the specified file is not registered in the RDT, it returns NULL.


COM Signature

From vsshell90.idl:

HRESULT GetFileDocData(
    [in] LPCOLESTR wszFilename,
    [out, retval] IUnknown** ppunkDocData

.NET Framework Security

See Also


IVsMSBuildTaskFileManager Interface

IVsMSBuildTaskFileManager Members

Microsoft.VisualStudio.Shell.Interop Namespace