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 型で公開されるメンバーは以下のとおりです。
プロパティ
名前 | 説明 | |
---|---|---|
![]() |
Logger | Visual Studio の出力ウィンドウまたは [エラー一覧] ウィンドウにメッセージを書き込むために使用できるログ サービスを取得します。 |
![]() |
Site | コマンドが実行されている SharePoint サイト コレクションを表す Microsoft.SharePoint.SPSite を取得します。 |
![]() |
Web | コマンドが実行されている SharePoint サイトを表す Microsoft.SharePoint.SPWeb を取得します。 |
このページのトップへ
メソッド
名前 | 説明 | |
---|---|---|
![]() |
Refresh | Microsoft.SharePoint.SPSite および Microsoft.SharePoint.SPWeb オブジェクトの新しいインスタンスで、コンテキストを更新します。 |
このページのトップへ
解説
ISharePointCommandContext は、すべての SharePoint コマンドの 1 番目のパラメーターに渡されます。 詳細については、「方法: SharePoint コマンドを作成する」を参照してください。
参照
参照
Microsoft.VisualStudio.SharePoint.Commands 名前空間