ISharePointCommandContext Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Provides the context in which a SharePoint command is being executed.
public interface class ISharePointCommandContext
[System.CLSCompliant(false)]
public interface ISharePointCommandContext
[<System.CLSCompliant(false)>]
type ISharePointCommandContext = interface
Public Interface ISharePointCommandContext
- Attributes
Remarks
An ISharePointCommandContext is passed to the first parameter of every SharePoint command. For more information, see How to: Create a SharePoint Command.
Properties
Logger |
Gets the log service which you can use to write messages to the Output window or Error List window in Visual Studio. |
Site |
Gets a Microsoft.SharePoint.SPSite that represents the SharePoint site collection on which the command is run. |
Web |
Gets a Microsoft.SharePoint.SPWeb that represents the SharePoint site on which the command is run. |
Methods
Refresh() |
Refreshes the context with new instances of the Microsoft.SharePoint.SPSite and Microsoft.SharePoint.SPWeb objects. |