DataMenuCommand Class

This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.
[SECURITY CRITICAL]

Represents an extended MenuCommand class to support status updates.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

[SecurityCriticalAttribute]
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DataMenuCommand : MenuCommand

The DataMenuCommand type exposes the following members.

  NameDescription
Public methodDataMenuCommand(CommandID)Initializes a new instance of the DataMenuCommand class, specifying the command identifier.
Public methodDataMenuCommand(CommandID, EventHandler)Initializes a new instance of the DataMenuCommand class, specifying the command identifier and event.
Public methodDataMenuCommand(CommandID, EventHandler, EventHandler)Initializes a new instance of the DataMenuCommand class, specifying the command identifier and events.
Top

  NameDescription
Public propertyCheckedGets or sets a value indicating whether this menu item is checked. (Inherited from MenuCommand.)
Public propertyCommandIDGets the CommandID associated with this menu command. (Inherited from MenuCommand.)
Public propertyEnabledGets a value indicating whether this menu item is available. (Inherited from MenuCommand.)
Public propertyOleStatusGets the OLE command status code for this menu item. (Inherited from MenuCommand.)
Public propertyPropertiesGets the public properties associated with the MenuCommand. (Inherited from MenuCommand.)
Public propertySupportedGets or sets a value indicating whether this menu item is supported. (Inherited from MenuCommand.)
Public propertyTextRetrieves the Text property of the menu command.
Public propertyVisibleGets or sets a value indicating whether this menu item is visible. (Inherited from MenuCommand.)
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInvoke()Invokes the menu command. (Overrides MenuCommand.Invoke().)
Public methodInvoke(Object)Invokes the menu command with the given parameter. (Overrides MenuCommand.Invoke(Object).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnCommandChangedRaises the CommandChanged event. (Inherited from MenuCommand.)
Public methodToStringReturns a string representation of this menu command. (Inherited from MenuCommand.)
Public methodUpdateStatusUpdates the status of the command and raises the appropriate event.
Top

  NameDescription
Public eventCommandChangedOccurs when the menu command changes. (Inherited from MenuCommand.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft