Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Retrieves the code model for a given file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function CreateFileCodeModel ( _
pszFilename As String, _
<OutAttribute> ByRef ppCodeModel As Object _
) As Integer
'Usage
Dim instance As IVsIntellisenseProjectHost
Dim pszFilename As String
Dim ppCodeModel As Object
Dim returnValue As Integer
returnValue = instance.CreateFileCodeModel(pszFilename, _
ppCodeModel)
int CreateFileCodeModel(
string pszFilename,
out Object ppCodeModel
)
int CreateFileCodeModel(
[InAttribute] String^ pszFilename,
[OutAttribute] Object^% ppCodeModel
)
abstract CreateFileCodeModel :
pszFilename:string *
ppCodeModel:Object byref -> int
function CreateFileCodeModel(
pszFilename : String,
ppCodeModel : Object
) : int
Parameters
- pszFilename
Type: System.String
[in] String containing the name of the file.
- ppCodeModel
Type: System.Object%
[out] Pointer to the IUnknown interface of an instance of the code model.
Return Value
Type: System.Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsIntellisenseProjectHost Interface