Partager via


RunOnContextAttribute Class

Definition

Export attribute which can be used to signify that a language client will only be activated in certain LiveShare context.

public ref class RunOnContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.ComponentModel.Composition.MetadataAttribute]
public class RunOnContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type RunOnContextAttribute = class
    inherit Attribute
Public Class RunOnContextAttribute
Inherits Attribute
Inheritance
RunOnContextAttribute
Attributes

Remarks

When the client is only made to run on Host and not activated on the Guest side this attibute is set to RunOnHost to avoid mirroing the results over LiveShare. This attribute is currently used to support LiveShare scenarios.

Constructors

RunOnContextAttribute(RunningContext)

Initializes a new instance of the RunOnContextAttribute class.

Properties

RunOnContext

Gets a value indicating the context in which the client can be activated.

Applies to