共用方式為


ISharePointProjectItemType Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a type of a SharePoint project item. It enables users to associate custom data with a type because it inherits from the IAnnotatedObject interface.

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

Syntax

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

The ISharePointProjectItemType 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 Id Gets the unique ID of the SharePoint project item type.
Public property IsValid Gets whether the project item is valid.
Public property Name Gets the friendly name of type shown in designers. By default, the name is the ID.
Public property ProjectService Gets an instance of the SharePoint project service.
Public property SupportedAssemblyDeploymentTargets Gets the deployment location of the assembly that is supported by this ProjectItem.
Public property SupportedDeploymentScopes Gets the scope at which the deployment of the ISharePointProjectItem is supported in SharePoint.
Public property SupportedTrustLevels Gets 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.)

Top

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace