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 | |
---|---|---|
IsActive | Gets the current state of the UI context, whether it is active or not. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FromUIContextGuid | Constructs a UIContext instance identified with the given GUID. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
PropertyChanged | Occurs when the IsActive property changes values. | |
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.