Share via


IVsIntellisenseProjectHost.CreateFileCodeModel(String, Object) Method

Definition

Retrieves the code model for a given file.

public:
 int CreateFileCodeModel(System::String ^ pszFilename, [Runtime::InteropServices::Out] System::Object ^ % ppCodeModel);
int CreateFileCodeModel(std::wstring const & pszFilename, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppCodeModel);
public int CreateFileCodeModel (string pszFilename, out object ppCodeModel);
abstract member CreateFileCodeModel : string * obj -> int
Public Function CreateFileCodeModel (pszFilename As String, ByRef ppCodeModel As Object) As Integer

Parameters

pszFilename
String

[in] String containing the name of the file.

ppCodeModel
Object

[out] Pointer to the IUnknown interface of an instance of the code model.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Intellisense projects (projects implementing IVsIntellisenseProject) call this method to get the code model for a given filename. Often this method retrieves the code model by calling the GetFileCodeModel method of the IVsIntellisenseProject interface.

Applies to