QueryResultsEditorFactory Class

Factory for creating our editor object. Extends from the IVsEditoryFactory interface

Inheritance Hierarchy

System..::..Object
  Microsoft.VisualStudio.Data.Tools.Package.QueryResults..::..QueryResultsEditorFactory

Namespace:  Microsoft.VisualStudio.Data.Tools.Package.QueryResults
Assembly:  Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)

Syntax

'Declaration
<GuidAttribute("0058A1F7-65F3-4DB9-B3D0-CA7E64DD73CD")> _
Public NotInheritable Class QueryResultsEditorFactory _
    Implements IVsEditorFactory, IDisposable
'Usage
Dim instance As QueryResultsEditorFactory
[GuidAttribute("0058A1F7-65F3-4DB9-B3D0-CA7E64DD73CD")]
public sealed class QueryResultsEditorFactory : IVsEditorFactory, 
    IDisposable
[GuidAttribute(L"0058A1F7-65F3-4DB9-B3D0-CA7E64DD73CD")]
public ref class QueryResultsEditorFactory sealed : IVsEditorFactory, 
    IDisposable
[<SealedAttribute>]
[<GuidAttribute("0058A1F7-65F3-4DB9-B3D0-CA7E64DD73CD")>]
type QueryResultsEditorFactory =  
    class
        interface IVsEditorFactory
        interface IDisposable
    end
public final class QueryResultsEditorFactory implements IVsEditorFactory, IDisposable

The QueryResultsEditorFactory type exposes the following members.

Constructors

  Name Description
Public method QueryResultsEditorFactory Initializes a new instance of the QueryResultsEditorFactory class.

Top

Methods

  Name Description
Public method Close
Public method CreateEditorInstance Used by the editor factory to create an editor instance. the environment first determines the editor factory with the highest priority for opening the file and then calls IVsEditorFactory.CreateEditorInstance. If the environment is unable to instantiate the document data in that editor, it will find the editor with the next highest priority and attempt to so that same thing. NOTE: The priority of our editor is 32 as mentioned in the attributes on the package class. Since our editor supports opening only a single view for an instance of the document data, if we are requested to open document data that is already instantiated in another editor, or even our editor, we return a value VS_E_INCOMPATIBLEDOCDATA.
Public method Dispose Since we create a ServiceProvider which implements IDisposable we also need to implement IDisposable to make sure that the ServiceProvider's Dispose method gets called.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetService
Public method GetType (Inherited from Object.)
Public method MapLogicalView
Protected method MemberwiseClone (Inherited from Object.)
Public method SetSite Used for initialization of the editor in the environment
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Data.Tools.Package.QueryResults Namespace