IVsIntellisenseProjectHost.CreateFileCodeModel(String, Object) Methode
Definition
Ruft das Codemodell für eine bestimmte Datei ab.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
Parameter
- pszFilename
- String
[in] Zeichenfolge mit dem Namen der Datei.[in] String containing the name of the file.
- ppCodeModel
- Object
[out] Zeiger auf die IUnknown
-Schnittstelle einer Instanz des Codemodells.[out] Pointer to the IUnknown
interface of an instance of the code model.
Gibt zurück
Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben.If the method succeeds, it returns S_OK. Bei einem Fehler wird ein Fehlercode zurückgegeben.If it fails, it returns an error code.
Hinweise
IntelliSense-Projekte (Projekte IVsIntellisenseProject , die implementieren) können diese Methode zum Abrufen des Code Modells für einen angegebenen Dateinamen abrufen.Intellisense projects (projects implementing IVsIntellisenseProject) call this method to get the code model for a given filename. Diese Methode ruft häufig das Code Modell durch Aufrufen der- GetFileCodeModel Methode der- IVsIntellisenseProject Schnittstelle ab.Often this method retrieves the code model by calling the GetFileCodeModel method of the IVsIntellisenseProject interface.