Classe DataMenuCommand
Este tipo tem um atributo SecurityCriticalAttribute, que o restringe a uso interno pela biblioteca de classes .NET Framework para Silverlight. O código de aplicativo que usa qualquer membro deste tipo lança uma MethodAccessException.
[SEGURANÇA CRÍTICA]
Representa uma classe de MenuCommand estendido para oferecer suporte a atualizações de status.
Hierarquia de herança
Object
MenuCommand
Microsoft.VisualStudio.Data.Framework.DataMenuCommand
Microsoft.VisualStudio.Data.Framework.DataViewMenuCommand
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (em Microsoft.VisualStudio.Data.Framework.dll)
Sintaxe
'Declaração
<SecurityCriticalAttribute> _
<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState := True)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class DataMenuCommand _
Inherits MenuCommand
[SecurityCriticalAttribute]
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DataMenuCommand : MenuCommand
[SecurityCriticalAttribute]
[HostProtectionAttribute(SecurityAction::LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class DataMenuCommand : public MenuCommand
[<SecurityCriticalAttribute>]
[<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")>]
type DataMenuCommand =
class
inherit MenuCommand
end
public class DataMenuCommand extends MenuCommand
O tipo DataMenuCommand expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
![]() |
DataMenuCommand(CommandID) | Inicializa uma nova instância da classe de DataMenuCommand , especificando o identificador de comando. |
![]() |
DataMenuCommand(CommandID, EventHandler) | Inicializa uma nova instância da classe de DataMenuCommand , especificando o identificador de comando e o evento. |
![]() |
DataMenuCommand(CommandID, EventHandler, EventHandler) | Inicializa uma nova instância da classe de DataMenuCommand , especificando o identificador de comando e eventos. |
Superior
Propriedades
Nome | Descrição | |
---|---|---|
![]() |
Checked | Obtém ou define um valor que indica se este item de menu será verificado. (Herdado de MenuCommand.) |
![]() |
CommandID | Obtém CommandID associado a esse comando de menu. (Herdado de MenuCommand.) |
![]() |
Enabled | Obtém um valor que indica se este item de menu estiver disponível. (Herdado de MenuCommand.) |
![]() |
OleStatus | Obtém o código de status do comando OLE para este item de menu. (Herdado de MenuCommand.) |
![]() |
Properties | Obtém as propriedades públicas associadas a MenuCommand. (Herdado de MenuCommand.) |
![]() |
Supported | Obtém ou define um valor que indica se este item de menu tem suporte. (Herdado de MenuCommand.) |
![]() |
Text | Recupera a propriedade de Text de comando de menu. |
![]() |
Visible | Obtém ou define um valor que indica se este item de menu é visível. (Herdado de MenuCommand.) |
Superior
Métodos
Nome | Descrição | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Herdado de Object.) |
![]() |
GetType | Gets the Type of the current instance. (Herdado de Object.) |
![]() |
Invoke() | Chama o comando de menu. (Substitui MenuCommand.Invoke.) |
![]() |
Invoke(Object) | Chama o comando de menu com o parâmetro fornecido. (Substitui MenuCommand.Invoke(Object).) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Herdado de Object.) |
![]() |
OnCommandChanged | Gera o evento CommandChanged. (Herdado de MenuCommand.) |
![]() |
ToString | Retorna uma representação de cadeia de caracteres desse comando de menu. (Herdado de MenuCommand.) |
![]() |
UpdateStatus | Atualizar o status de comando e gera o evento apropriado. |
Superior
Eventos
Nome | Descrição | |
---|---|---|
![]() |
CommandChanged | Ocorre quando o comando de menu é alterado. (Herdado de MenuCommand.) |
Superior
Acesso thread-safe
Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.