DataViewHierarchyAccessor.GetCommandStatus 메서드 (Int32, OleCommand)
OLE 명령 상태를 검색합니다.
네임스페이스: Microsoft.VisualStudio.Data
어셈블리: Microsoft.VisualStudio.Data(Microsoft.VisualStudio.Data.dll)
구문
‘선언
Public Function GetCommandStatus ( _
itemId As Integer, _
command As OleCommand _
) As OleCommandStatus
public OleCommandStatus GetCommandStatus(
int itemId,
OleCommand command
)
public:
OleCommandStatus^ GetCommandStatus(
int itemId,
OleCommand^ command
)
member GetCommandStatus :
itemId:int *
command:OleCommand -> OleCommandStatus
public function GetCommandStatus(
itemId : int,
command : OleCommand
) : OleCommandStatus
매개 변수
- itemId
형식: System.Int32
명령 상태를 검색할 항목의 ID.
- command
형식: Microsoft.VisualStudio.Data.OleCommand
쿼리 상태에 대 한 명령입니다.
반환 값
형식: Microsoft.VisualStudio.Data.OleCommandStatus
반환 된 OleCommandStatus OLE 명령 상태를 설명 하는 개체입니다.
예외
예외 | 조건 |
---|---|
ArgumentNullException | command 매개 변수가 null인 경우 |
ArgumentException | 지정 된 수는 유효 하지 않습니다. |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.