C# Class Microsoft.Sarif.Viewer.SarifEditorFactory

Inheritance: IVsEditorFactory, IDisposable
Mostrar archivo Open project: Microsoft/sarif-sdk Class Usage Examples

Public Methods

Method 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

Method 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 method

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

Dispose() public method

Clean up any resources being used.
public Dispose ( ) : void
return void

GetService() public method

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.
return object

MapLogicalView() public method

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

SarifEditorFactory() public method

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

SetSite() public method

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.
return int