この型は SecurityCriticalAttribute 属性を持っているため、使用は .NET Framework for Silverlight クラス ライブラリでの内部用に限定されます。アプリケーション コードでこの型の任意のメンバーを使用すると、MethodAccessException 例外がスローされます。
[セキュリティ クリティカル]
クラスを拡張 MenuCommand のステータスの更新をサポートするようにを表します。
継承階層
System.Object
System.ComponentModel.Design.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 型で公開されるメンバーは以下のとおりです。
コンストラクター
| 名前 | 説明 | |
|---|---|---|
![]() |
DataMenuCommand(CommandID) | コマンド識別子を指定する DataMenuCommand クラスの新しいインスタンスを初期化します。 |
![]() |
DataMenuCommand(CommandID, EventHandler) | DataMenuCommand クラスの新しいインスタンスを初期化します。これは、コマンド ID とイベントを指定します。 |
![]() |
DataMenuCommand(CommandID, EventHandler, EventHandler) | DataMenuCommand クラスの新しいインスタンスを初期化します。これは、コマンド ID とイベントを指定します。 |
このページのトップへ
プロパティ
| 名前 | 説明 | |
|---|---|---|
![]() |
Checked | メニュー項目がチェックされているかどうかを示す値を取得または設定します。 (MenuCommand から継承されます。) |
![]() |
CommandID | メニュー コマンドに関連付けられている CommandID を取得します。 (MenuCommand から継承されます。) |
![]() |
Enabled | メニュー項目を使用できるかどうかを示す値を取得します。 (MenuCommand から継承されます。) |
![]() |
OleStatus | メニュー項目の OLE コマンド ステータス コードを取得します。 (MenuCommand から継承されます。) |
![]() |
Properties | MenuCommand に関連付けられているパブリック プロパティを取得します。 (MenuCommand から継承されます。) |
![]() |
Supported | メニュー項目がサポートされているかどうかを示す値を取得または設定します。 (MenuCommand から継承されます。) |
![]() |
Text | メニュー コマンドの Text のプロパティを取得します。 |
![]() |
Visible | メニュー項目を表示するかどうかを示す値を取得または設定します。 (MenuCommand から継承されます。) |
このページのトップへ
メソッド
| 名前 | 説明 | |
|---|---|---|
![]() |
Equals | 指定のオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (Object から継承されます。) |
![]() |
Finalize | オブジェクトがガベージ コレクションにより収集される前に、そのオブジェクトがリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() |
GetHashCode | 特定の型のハッシュ関数として機能します。 (Object から継承されます。) |
![]() |
GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() |
Invoke() | メニュー コマンドを呼び出します。 (MenuCommand.Invoke() をオーバーライドします。) |
![]() |
Invoke(Object) | 特定のパラメーターのメニュー コマンドを呼び出します。 (MenuCommand.Invoke(Object) をオーバーライドします。) |
![]() |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() |
OnCommandChanged | CommandChanged イベントを発生させます。 (MenuCommand から継承されます。) |
![]() |
ToString | メニュー コマンドの文字列形式を返します。 (MenuCommand から継承されます。) |
![]() |
UpdateStatus | コマンドの状態を更新し、適切なイベントを発生させます。 |
このページのトップへ
イベント
| 名前 | 説明 | |
|---|---|---|
![]() |
CommandChanged | メニュー コマンドが変更されたときに発生します。 (MenuCommand から継承されます。) |
このページのトップへ
スレッド セーフ
この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
.gif)
.gif)
.gif)
.gif)