DataMenuCommand Class
Represents an extended MenuCommand class to support status updates.
Inheritance Hierarchy
System.Object
System.ComponentModel.Design.MenuCommand
Microsoft.VisualStudio.Data.Framework.DataMenuCommand
Microsoft.VisualStudio.Data.Framework.DataViewMenuCommand
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState := True)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class DataMenuCommand _
Inherits MenuCommand
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DataMenuCommand : MenuCommand
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
[HostProtectionAttribute(SecurityAction::LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class DataMenuCommand : public MenuCommand
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
[<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")>]
type DataMenuCommand =
class
inherit MenuCommand
end
public class DataMenuCommand extends MenuCommand
The DataMenuCommand type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataMenuCommand(CommandID) | Initializes a new instance of the DataMenuCommand class, specifying the command identifier. | |
DataMenuCommand(CommandID, EventHandler) | Initializes a new instance of the DataMenuCommand class, specifying the command identifier and event. | |
DataMenuCommand(CommandID, EventHandler, EventHandler) | Initializes a new instance of the DataMenuCommand class, specifying the command identifier and events. |
Top
Properties
Name | Description | |
---|---|---|
Checked | Gets or sets a value indicating whether this menu item is checked. (Inherited from MenuCommand.) | |
CommandID | Gets the CommandID associated with this menu command. (Inherited from MenuCommand.) | |
Enabled | Gets a value indicating whether this menu item is available. (Inherited from MenuCommand.) | |
OleStatus | Gets the OLE command status code for this menu item. (Inherited from MenuCommand.) | |
Properties | Gets the public properties associated with the MenuCommand. (Inherited from MenuCommand.) | |
Supported | Gets or sets a value indicating whether this menu item is supported. (Inherited from MenuCommand.) | |
Text | Retrieves the Text property of the menu command. | |
Visible | Gets or sets a value indicating whether this menu item is visible. (Inherited from MenuCommand.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invoke() | Invokes the menu command. (Overrides MenuCommand.Invoke().) | |
Invoke(Object) | Invokes the menu command with the given parameter. (Overrides MenuCommand.Invoke(Object).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCommandChanged | Raises the CommandChanged event. (Inherited from MenuCommand.) | |
ToString | Returns a string representation of this menu command. (Inherited from MenuCommand.) | |
UpdateStatus | Updates the status of the command and raises the appropriate event. |
Top
Events
Name | Description | |
---|---|---|
CommandChanged | Occurs when the menu command changes. (Inherited from MenuCommand.) |
Top
Remarks
Note
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
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.