Click or drag to resize
OutputWindowDefinition Class
This class allows MEF extensions to declare custom output window panes.
Inheritance Hierarchy
SystemObject
  Tvl.VisualStudio.OutputWindow.InterfacesOutputWindowDefinition

Namespace: Tvl.VisualStudio.OutputWindow.Interfaces
Assembly: Tvl.VisualStudio.OutputWindow.Interfaces (in Tvl.VisualStudio.OutputWindow.Interfaces.dll) Version: 2.0.1.0-dev
Syntax
public class OutputWindowDefinition

The OutputWindowDefinition type exposes the following members.

Constructors
  NameDescription
Public methodOutputWindowDefinition
Initializes a new instance of the OutputWindowDefinition class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDisplayName
Gets the display name of the output window pane.
Top
Remarks
This class may be used as-is, or may be extended to implement the DisplayName property to provide localized display names for output window panes.
Examples
The following example shows how to export a custom output window pane named Custom.
C#
[Export]
[Name("Custom")]
private static readonly OutputWindowDefinition CustomOutputWindowDefinition;

The following example shows how to export a custom output window pane with the canonical name Custom and a localized display name defined in an SR resources class.

C#
[Export]
[Name("Custom")]
private static readonly OutputWindowDefinition _customOutputWindowDefinition =
    new CustomOutputWindowDefinition();

private sealed class CustomOutputWindowDefinition : OutputWindowDefinition
{
  public override string DisplayName
  {
    get
    {
      return SR.CustomOutputWindowName;
    }
  }
}
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