DataMenuCommand 클래스

이 형식에 지정된 SecurityCriticalAttribute 특성은 해당 형식을 .NET Framework 내부에서 Silverlight 클래스 라이브러리에만 사용하도록 제한합니다. 이 형식의 멤버를 사용하는 응용 프로그램 코드에서는 MethodAccessException을 throw합니다.

[보안 중요]

확장을 나타내는 MenuCommand 클래스에서 상태 업데이트를 지원 합니다.

상속 계층 구조

Object
  MenuCommand
    Microsoft.VisualStudio.Data.Framework.DataMenuCommand
      Microsoft.VisualStudio.Data.Framework.DataViewMenuCommand

네임스페이스:  Microsoft.VisualStudio.Data.Framework
어셈블리:  Microsoft.VisualStudio.Data.Framework(Microsoft.VisualStudio.Data.Framework.dll)

구문

‘선언
<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

DataMenuCommand 형식에서는 다음과 같은 멤버를 노출합니다.

생성자

  이름 설명
Public 메서드 DataMenuCommand(CommandID) 새 인스턴스를 초기화는 DataMenuCommand 클래스의 명령 식별자를 지정 합니다.
Public 메서드 DataMenuCommand(CommandID, EventHandler) 새 인스턴스를 초기화는 DataMenuCommand 클래스, 명령 식별자 및 이벤트를 지정 합니다.
Public 메서드 DataMenuCommand(CommandID, EventHandler, EventHandler) 새 인스턴스를 초기화는 DataMenuCommand 클래스, 이벤트와 명령 식별자를 지정 합니다.

위쪽

속성

  이름 설명
Public 속성 Checked 이 메뉴 항목이 선택되어 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (MenuCommand에서 상속됨)
Public 속성 CommandID 이 메뉴 명령과 관련된 CommandID를 가져옵니다. (MenuCommand에서 상속됨)
Public 속성 Enabled 이 메뉴 항목을 사용할 수 있는지 여부를 나타내는 값을 가져옵니다. (MenuCommand에서 상속됨)
Public 속성 OleStatus 이 메뉴 항목에 대한 OLE 명령 상태 코드를 가져옵니다. (MenuCommand에서 상속됨)
Public 속성 Properties MenuCommand와 연결된 public 속성을 가져옵니다. (MenuCommand에서 상속됨)
Public 속성 Supported 이 메뉴 항목이 지원되는지 여부를 나타내는 값을 가져오거나 설정합니다. (MenuCommand에서 상속됨)
Public 속성 Text 검색은 Text 속성은 메뉴 명령.
Public 속성 Visible 이 메뉴 항목이 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (MenuCommand에서 상속됨)

위쪽

메서드

  이름 설명
Public 메서드 Equals 지정한 개체와 현재 개체가 같은지를 확인합니다. (Object에서 상속됨)
Protected 메서드 Finalize 가비지 수집기가 회수하기 전에 개체가 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨)
Public 메서드 GetHashCode 기본 해시 함수로 작동합니다. (Object에서 상속됨)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드 Invoke() 메뉴 명령을 실행합니다. (MenuCommand.Invoke을(를) 재정의함)
Public 메서드 Invoke(Object) 메뉴 명령에 지정 된 매개 변수를 호출합니다. (MenuCommand.Invoke(Object)을(를) 재정의함)
Protected 메서드 MemberwiseClone 현재 Object의 부분 복사본을 만듭니다. (Object에서 상속됨)
Protected 메서드 OnCommandChanged CommandChanged 이벤트를 발생시킵니다. (MenuCommand에서 상속됨)
Public 메서드 ToString 이 메뉴 명령의 문자열 표현을 반환합니다. (MenuCommand에서 상속됨)
Public 메서드 UpdateStatus 명령의 상태를 업데이트 하 고 해당 이벤트를 발생 시킵니다.

위쪽

이벤트

  이름 설명
Public 이벤트 CommandChanged 메뉴 명령이 변경될 경우 발생합니다. (MenuCommand에서 상속됨)

위쪽

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.VisualStudio.Data.Framework 네임스페이스

MenuCommand