This topic has not yet been rated - Rate this topic

SPImportContext class

Detects if the event or feature activation of the code that calls this class is a part of the import context.

System.Object
  Microsoft.SharePoint.Deployment.SPImportContext

Namespace:  Microsoft.SharePoint.Deployment
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPImportContext

SPImportContext has no public constructors. Get a reference to an SPImportContext from the Current property.

This class is used by event receivers of feature activation to detect if they are in the context of an import operation.

SPImportContext specifies whether an import is occurring or not for a given thread.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.