コマンド テキストの特定の種類の確認要求で OLE コマンドの状態を取得します。
名前空間: Microsoft.VisualStudio.Data
アセンブリ: Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.dll 内)
構文
'宣言
Public Function GetCommandStatus ( _
itemId As Integer, _
command As OleCommand, _
textType As OleCommandTextType _
) As OleCommandStatus
public OleCommandStatus GetCommandStatus(
int itemId,
OleCommand command,
OleCommandTextType textType
)
public:
OleCommandStatus^ GetCommandStatus(
int itemId,
OleCommand^ command,
OleCommandTextType textType
)
member GetCommandStatus :
itemId:int *
command:OleCommand *
textType:OleCommandTextType -> OleCommandStatus
public function GetCommandStatus(
itemId : int,
command : OleCommand,
textType : OleCommandTextType
) : OleCommandStatus
パラメーター
- itemId
型 : System.Int32
コマンドのステータスを取得する必要がある項目 ID。
- command
型 : Microsoft.VisualStudio.Data.OleCommand
状態を照会するコマンド。
- textType
型 : Microsoft.VisualStudio.Data.OleCommandTextType
取得される、テキスト型。
戻り値
型 : Microsoft.VisualStudio.Data.OleCommandStatus
OLE コマンドの状態を示す OleCommandStatus のオブジェクトを返します。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | command パラメーターが null です。 |
| ArgumentException | 指定 itemId が無効です。 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。