SuggestedActionCategoryDefinition Class

Visual Studio 2015
 

Defines a suggested action category.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

System.Object
  Microsoft.VisualStudio.Language.Intellisense.SuggestedActionCategoryDefinition

public sealed class SuggestedActionCategoryDefinition

NameDescription
System_CAPS_pubmethodSuggestedActionCategoryDefinition()

Initializes a new instance of SuggestedActionCategoryDefinition.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Because you cannot subclass this type, you should use the [Export] attribute with no type.

internal sealed class Components
{
    [Export]
    [Name(PredefinedSuggestedActionCategoryNames.ErrorFix)]     // required
    [BaseDefinition(PredefinedSuggestedActionCategoryNames.CodeFix)]    // zero or more BaseDefinitions are allowed
    private SuggestedActionCategoryDefinition errorFixSuggestedActionCategoryDefinition;
    ( other components )
}

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

Return to top
Show: