ISharePointConnection.ExecuteCommand 메서드 (String)
지정된 식별자를 사용하는 SharePoint 명령을 실행합니다.
네임스페이스: Microsoft.VisualStudio.SharePoint
어셈블리: Microsoft.VisualStudio.SharePoint(Microsoft.VisualStudio.SharePoint.dll)
구문
‘선언
Sub ExecuteCommand ( _
commandId As String _
)
void ExecuteCommand(
string commandId
)
매개 변수
- commandId
형식: System.String
실행할 SharePoint 명령의 식별자입니다.
예외
예외 | 조건 |
---|---|
SharePointConnectionException | SharePoint에 연결하는 동안 오류가 발생했습니다. |
ArgumentOutOfRangeException | commandId는 사용할 수 있는 모든 SharePoint 명령을 일치시키지 않습니다. |
SharePointCommandException | SharePoint 명령에 의해 예외가 throw되었습니다. |
설명
이 메서드를 사용하여 사용자 지정 매개 변수나 반환 값이 없는 SharePoint 명령을 실행합니다.자세한 내용은 방법: SharePoint 명령 만들기 및 방법: SharePoint 명령 실행을 참조하십시오.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.