Visual Studio の SharePoint ツールの拡張機能から SharePoint サーバー オブジェクト モデルを呼び出す、SharePoint コマンドの実行に使用できるメソッドを提供します。
名前空間: Microsoft.VisualStudio.SharePoint
アセンブリ: Microsoft.VisualStudio.SharePoint (Microsoft.VisualStudio.SharePoint.dll 内)
構文
'宣言
Public Interface ISharePointConnection
public interface ISharePointConnection
メソッド
名前 | 説明 | |
---|---|---|
![]() |
ExecuteCommand(String) | 指定した ID を持つ SharePoint コマンドを実行します。 |
![]() |
ExecuteCommand<TResult>(String) | 指定した ID と戻り値の型を持つ SharePoint コマンドを実行します。 |
![]() |
ExecuteCommand<T>(String, T) | 指定した ID とパラメーターの型を持つ SharePoint コマンドを実行します。 |
![]() |
ExecuteCommand<T, TResult>(String, T) | 指定した ID、パラメーターの型、および戻り値の型を持つ SharePoint コマンドを実行します。 |
このページのトップへ
解説
SharePoint コマンドは、SharePoint サーバー オブジェクト モデルへの呼び出しを行うために SharePoint ツール拡張機能で使用できるメソッドです。 SharePoint のコマンドを定義した後、ISharePointConnection オブジェクトを取得し、ExecuteCommand メソッドのいずれかを呼び出すことによりコマンドを実行できます。 詳細については、「方法: SharePoint コマンドを実行する」を参照してください。
参照
参照
Microsoft.VisualStudio.SharePoint 名前空間