Share via


ISharePointProjectItemTypeDefinition Interface

Helps define the type of a SharePoint project item.

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

Syntax

'Declaration
Public Interface ISharePointProjectItemTypeDefinition _
    Inherits IAnnotatedObject, ISharePointProjectItemEvents, ISharePointProjectItemFileEvents
public interface ISharePointProjectItemTypeDefinition : IAnnotatedObject, 
    ISharePointProjectItemEvents, ISharePointProjectItemFileEvents

The ISharePointProjectItemTypeDefinition type exposes the following members.

Properties

  Name Description
Public property Annotations Gets an instance IAnnotationDictionary to associate custom data with the object implementing the IAnnotatedObject interface. (Inherited from IAnnotatedObject.)
Public property Name Gets or sets the name of the project item type shown in designers. By default it is the ID.
Public property ProjectItemType Gets the ISharePointProjectItemType being defined by this ISharePointProjectItemTypeDefinition instance.
Public property ProjectService Gets an instance of the SharePoint project service.
Public property SupportedAssemblyDeploymentTargets Gets or sets the deployment location of the assembly that is supported by this project item.
Public property SupportedDeploymentScopes Gets or sets the scope at which the deployment of the ISharePointProjectItem is supported in SharePoint.
Public property SupportedTrustLevels Gets or sets the trust levels in SharePoint supported by the ISharePointProjectItem.

Top

Events

  Name Description
Public event DeploymentStepCanceled Occurs when a deployment step has been canceled for an ISharePointProjectItem instance. (Inherited from ISharePointProjectItemEvents.)
Public event DeploymentStepCompleted Occurs when a deployment step completes for an ISharePointProjectItem instance. (Inherited from ISharePointProjectItemEvents.)
Public event DeploymentStepFailed Occurs when a deployment step has failed for an ISharePointProjectItem instance. (Inherited from ISharePointProjectItemEvents.)
Public event DeploymentStepStarted Occurs when a deployment step starts for an ISharePointProjectItem instance. (Inherited from ISharePointProjectItemEvents.)
Public event FileAdded Occurs when a new ISharePointProjectItemFile instance is added. (Inherited from ISharePointProjectItemFileEvents.)
Public event FileDeploymentPathChanged Occurs when the DeploymentPath property is modified. (Inherited from ISharePointProjectItemFileEvents.)
Public event FileDeploymentTypeChanged Occurs when the DeploymentType property is modified. (Inherited from ISharePointProjectItemFileEvents.)
Public event FileNameChanged Occurs when an ISharePointProjectItemFile instance is renamed. (Inherited from ISharePointProjectItemFileEvents.)
Public event FilePropertyChanged Occurs when a property value in an ISharePointProjectItemFile instance is modified. (Inherited from ISharePointProjectItemFileEvents.)
Public event FileRemoved Occurs when an ISharePointProjectItemFile instance is removed. (Inherited from ISharePointProjectItemFileEvents.)
Public event ProjectItemAdded Occurs when a new ISharePointProjectItem instance is added. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemDisposing Occurs when an ISharePointProjectItem instance is about to be disposed. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemInitialized Occurs when an ISharePointProjectItem instance is initialized. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemMenuItemsRequested Occurs when an ISharePointProjectItem instance is requested for context menu items. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemNameChanged Occurs when an ISharePointProjectItem instance is renamed. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemOpen Occurs when a SharePoint project item folder opens. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemPropertiesRequested Occurs when an ISharePointProjectItem instance is requested for properties. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemPropertyChanged Occurs when a property value in an ISharePointProjectItem instance is changed. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemRemoved Occurs when an ISharePointProjectItem instance is removed. (Inherited from ISharePointProjectItemEvents.)
Public event ProjectItemStartupUrlRequested Occurs when a startup URL is requested for an ISharePointProjectItem.

Top

Remarks

Properties can be set only inside of the InitializeType method.

ISharePointProjectItemTypeDefinition allows to associate custom data with a type because it inherits from the IAnnotatedObject interface.

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace