ISharePointCommandContext 인터페이스

SharePoint 명령이 실행되는 컨텍스트를 제공합니다.

이 API는 CLS 규격이 아닙니다. 

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

구문

‘선언
<CLSCompliantAttribute(False)> _
Public Interface ISharePointCommandContext
[CLSCompliantAttribute(false)]
public interface ISharePointCommandContext

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

속성

  이름 설명
Public 속성 Logger Visual Studio의 출력 창 또는 오류 목록 창에 메시지를 쓸 수 있는 로그 서비스를 가져옵니다.
Public 속성 Site 명령이 실행되는 SharePoint 사이트 컬렉션을 나타내는 Microsoft.SharePoint.SPSite를 가져옵니다.
Public 속성 Web 명령이 실행되는 SharePoint 사이트를 나타내는 Microsoft.SharePoint.SPWeb을 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 Refresh Microsoft.SharePoint.SPSiteMicrosoft.SharePoint.SPWeb 개체의 새 인스턴스로 컨텍스트를 새로 고칩니다.

위쪽

설명

ISharePointCommandContext가 모든 SharePoint 명령의 첫 번째 매개 변수로 전달됩니다. 자세한 내용은 방법: SharePoint 명령 만들기을 참조하십시오.

참고 항목

참조

Microsoft.VisualStudio.SharePoint.Commands 네임스페이스

기타 리소스

방법: SharePoint 명령 만들기