Share via


IVsMSBuildTaskFileManager.GetFileDocData(String, IntPtr) Method

Definition

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

public:
 int GetFileDocData(System::String ^ wszFilename, [Runtime::InteropServices::Out] IntPtr % ppunkDocData);
public int GetFileDocData (string wszFilename, out IntPtr ppunkDocData);
abstract member GetFileDocData : string * nativeint -> int
Public Function GetFileDocData (wszFilename As String, ByRef ppunkDocData As IntPtr) As Integer

Parameters

wszFilename
String

[in] The name of the file.

ppunkDocData
IntPtr

nativeint

[out] A pointer to the DocData object interface.

Returns

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.

Remarks

COM Signature

From vsshell90.idl:

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

Applies to