C# Class Microsoft.Sarif.Viewer.SarifEditorFactory

Inheritance: IVsEditorFactory, IDisposable
Afficher le fichier Open project: Microsoft/sarif-sdk Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : int

Releases all cached interface pointers and unregisters any event sinks

Dispose ( ) : void

Clean up any resources being used.

GetService ( Type serviceType ) : object

Gets the service object of the specified type.

MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int
SarifEditorFactory ( ) : System

Explicitly defined default constructor. Initialize new instance of the EditorFactory object.

SetSite ( Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp ) : int

Used for initialization of the editor in the environment.

Private Methods

Méthode Description
CreateEditorInstance ( uint grfCreateDoc, string pszMkDocument, string pszPhysicalView, IVsHierarchy pvHier, uint itemid, IntPtr punkDocDataExisting, IntPtr &ppunkDocView, IntPtr &ppunkDocData, string &pbstrEditorCaption, System.Guid &pguidCmdUI, int &pgrfCDW ) : int
Dispose ( bool disposing ) : void

Clean up any resources being used.

Method Details

Close() public méthode

Releases all cached interface pointers and unregisters any event sinks
public Close ( ) : int
Résultat int

Dispose() public méthode

Clean up any resources being used.
public Dispose ( ) : void
Résultat void

GetService() public méthode

Gets the service object of the specified type.
public GetService ( Type serviceType ) : object
serviceType System.Type An Type that specifies the type of service object to get.
Résultat object

MapLogicalView() public méthode

public MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int
rguidLogicalView System.Guid
pbstrPhysicalView string
Résultat int

SarifEditorFactory() public méthode

Explicitly defined default constructor. Initialize new instance of the EditorFactory object.
public SarifEditorFactory ( ) : System
Résultat System

SetSite() public méthode

Used for initialization of the editor in the environment.
public SetSite ( Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp ) : int
psp Microsoft.VisualStudio.OLE.Interop.IServiceProvider Pointer to the service provider. Can be used to obtain instances of other interfaces.
Résultat int