ISharePointCommandContext Interface

ISharePointCommandContext Interface

 

Provides the context in which a SharePoint command is being executed.

Namespace:   Microsoft.VisualStudio.SharePoint.Commands
Assembly:  Microsoft.VisualStudio.SharePoint.Commands (in Microsoft.VisualStudio.SharePoint.Commands.dll)

[CLSCompliantAttribute(false)]
public interface ISharePointCommandContext

NameDescription
System_CAPS_pubpropertyLogger

Gets the log service which you can use to write messages to the Output window or Error List window in Visual Studio.

System_CAPS_pubpropertySite

Gets a Microsoft.SharePoint.SPSite that represents the SharePoint site collection on which the command is run.

System_CAPS_pubpropertyWeb

Gets a Microsoft.SharePoint.SPWeb that represents the SharePoint site on which the command is run.

NameDescription
System_CAPS_pubmethodRefresh()

Refreshes the context with new instances of the Microsoft.SharePoint.SPSite and Microsoft.SharePoint.SPWeb objects.

An ISharePointCommandContext is passed to the first parameter of every SharePoint command. For more information, see How to: Create a SharePoint Command.

Return to top
Show:
© 2016 Microsoft