다음을 통해 공유


UIContext Class

Represents the active state of a UI context.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.UIContext

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

‘선언
Public NotInheritable Class UIContext _
    Implements INotifyPropertyChanged
public sealed class UIContext : INotifyPropertyChanged

The UIContext type exposes the following members.

Properties

  Name Description
Public property IsActive Gets the current state of the UI context, whether it is active or not.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member FromUIContextGuid Constructs a UIContext instance identified with the given GUID.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event PropertyChanged Occurs when the IsActive property changes values.
Public event UIContextChanged Occurs whenever the UI context becomes active or inactive.

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.Shell Namespace