Membres WebPart (Microsoft.SharePoint.WebPartPages)
Provides the base class for creating Windows SharePoint Services Web Parts.
Les tableaux suivants contiennent la liste des membres exposés par le type WebPart .
Constructeurs protégés
Nom | Description | |
---|---|---|
WebPart | Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class. |
Haut de page
Champs publics
Nom | Description | |
---|---|---|
LimitOneConnection | Specifies that a connectable Web Part can accept no more than one connection to another Web Part. | |
UnlimitedConnections | Specifies that a connectable Web Part can accept an unlimited number of connections to another Web Part. |
Haut de page
Propriétés publiques
(voir aussi Propriétés protégées )
Nom | Description | |
---|---|---|
AccessKey | (hérité de WebControl) | |
AllowClose | (hérité de WebPart) | |
AllowConnect | Substitué. Gets or sets a value that indicates whether the WebPart control allows other controls to form connections with it. | |
AllowEdit | Substitué. Gets or sets a value indicating whether an end user can modify a WebPart control in personal view. | |
AllowHide | Substitué. Gets or sets a value indicating whether end users are allowed to hide a WebPart control. | |
AllowMinimize | Substitué. Gets or sets whether the Web Part can be minimized. | |
AllowRemove | Gets or sets whether the Web Part can be removed from a Web Part Page by controlling whether the IsIncluded property can be set to false. Obsolète. | |
AllowZoneChange | Substitué. Gets or sets whether the Web Part can be moved to a different zone by controlling whether the ZoneID property can be changed. | |
AppRelativeTemplateSourceDirectory | (hérité de Control) | |
Attributes | (hérité de WebControl) | |
AuthorizationFilter | Substitué. Gets or sets an arbitrary string to determine whether a Web Part is authorized to be added to a page. | |
BackColor | (hérité de WebControl) | |
BackImageUrl | (hérité de Panel) | |
BindingContainer | (hérité de Control) | |
BorderColor | (hérité de WebControl) | |
BorderStyle | (hérité de WebControl) | |
BorderWidth | (hérité de WebControl) | |
BrowserDesignMode | Gets whether a Web Part is in design mode (modifying its layout or properties) in the Web browser. Obsolète. | |
Caption | Gets or sets a string that is added following the title in the title bar of the Web Part. This property is intended for document names or other context-specific information. Obsolète. | |
CatalogIconImageUrl | Substitué. Gets or sets the URL to an image used to represent the Web Part in a catalog. | |
ChromeState | (hérité de WebPart) | |
ChromeType | (hérité de WebPart) | |
ClientID | (hérité de Control) | |
ClientName | Gets the unique name of the Web Part used by the client-side Web Part Page Service Component (WPSC). | |
ConnectErrorMessage | (hérité de WebPart) | |
ConnectionID | Gets or sets the GUID that is used internally by the Web Part infrastructure as the unique identifier of a Web Part connection. | |
Connections | Gets or sets the connection information that is stored with a connected Web Part. | |
Controls | (hérité de Part) | |
ControlStyle | (hérité de WebControl) | |
ControlStyleCreated | (hérité de WebControl) | |
CssClass | (hérité de WebControl) | |
DefaultButton | (hérité de Panel) | |
Description | Substitué. Gets or sets a text description that appears when the user rests the mouse pointer on the title of a Web Part in a Web Part Page or gallery. | |
DetailLink | Gets or sets a URL to an HTML document that contains supplemental information. Obsolète. | |
Dir | Gets or sets the direction of the reading order for a Web Part's text and frame. Setting this value overrides the value specified for the System.Web.UI.Page.Culture property. Obsolète. | |
Direction | (hérité de WebPart) | |
DisplayTitle | (hérité de WebPart) | |
EffectiveFrameType | Gets the frame type that is used to render the Web Part frame at run time. Obsolète. | |
EffectiveStorage | Gets whether the instance of the Web Part returned is stored as personal instance or shared instance. | |
EffectiveTitle | Gets the title of specified the Web Part instance, including any disambiguation information added by the Web Part infrastructure. | |
Enabled | (hérité de WebControl) | |
EnableTheming | (hérité de WebControl) | |
EnableViewState | (hérité de Control) | |
ExportControlledProperties | Gets or sets a value indicating whether a Web Part’s properties that are flagged as controlled properties by the Web Part developer can have their values exported in personal view. Obsolète. | |
ExportMode | (hérité de WebPart) | |
Font | (hérité de WebControl) | |
ForeColor | (hérité de WebControl) | |
FrameState | Gets or sets the initial state of the Web Part frame, which can be normal (expanded) or minimized. Obsolète. | |
FrameType | Gets or sets the style of the Web Part frame. Obsolète. | |
GroupingText | (hérité de Panel) | |
HasAttributes | (hérité de WebControl) | |
HasSharedData | (hérité de WebPart) | |
HasUserData | (hérité de WebPart) | |
Height | Gets or sets the fixed height for a Web Part on a Web Part Page. | |
HelpLink | Gets or sets a URL or file system path to a help file in HTML format. Obsolète. | |
HelpMode | Substitué. Gets or sets the type of user interface used to display Help content for a Web Part. | |
HelpUrl | Substitué. Gets or sets a Help link. | |
Hidden | Substitué. Gets or sets a value indicating whether the Web Part is displayed on a Web page. | |
HorizontalAlign | (hérité de Panel) | |
ID | Substitué. Gets or sets an identifier for the Web Part. | |
ImportErrorMessage | (hérité de WebPart) | |
IsClosed | (hérité de WebPart) | |
IsIncluded | Gets or sets a value indicating whether a Web Part that is added by another user or the administrator in the shared view of a Web Part page should be included in a personal view of the page. Obsolète. | |
IsIncludedFilter | Gets or sets the parameters used by the IRuntimeFilter interface to determine if the Web Part will be included on the Web Part Page. Obsolète. | |
IsShared | (hérité de WebPart) | |
IsStandalone | (hérité de WebPart) | |
IsStatic | (hérité de WebPart) | |
IsVisible | Gets or sets whether the Web Part is visible. Obsolète. | |
MissingAssembly | Gets or sets the message shown to the user when importing a Web Part if the assembly for the Web Part is not installed on the target server. Obsolète. | |
NamingContainer | (hérité de Control) | |
Page | (hérité de Control) | |
Parent | (hérité de Control) | |
PartImageLarge | Gets or sets the URL of an image file containing a 16 x 16 pixel image, typically used to depict icons. Obsolète. | |
PartImageSmall | Gets or sets the URL of an image file that appears in the title of a Web Part. Obsolète. | |
PartOrder | Gets or sets the order in which the Web Part appears within a Web Part zone. Obsolète. | |
Permissions | Gets the properties of a Web Part that can be modified currently. Obsolète. | |
Qualifier | Gets a unique identifier for a Web Part. | |
ScrollBars | (hérité de Panel) | |
SerializedAttachedPropertiesShared | Supports the Windows SharePoint Services Web Part connection infrastructure. Not intended to be used directly from your code. | |
SerializedAttachedPropertiesUser | Supports the Windows SharePoint Services Web Part connection infrastructure. Not intended to be used directly from your code. | |
Site | (hérité de Control) | |
SkinID | (hérité de WebControl) | |
StorageKey | Gets the unique identifier set by the Web Part infrastructure when a Web Part is added to a Web Part Zone. | |
Style | (hérité de WebControl) | |
Subtitle | Substitué. Returns the value of the Caption property. | |
SuppressWebPartChrome | Gets or sets whether chrome is displayed for a static Web Part. | |
TabIndex | (hérité de WebControl) | |
TemplateControl | (hérité de Control) | |
TemplateSourceDirectory | (hérité de Control) | |
Title | Substitué. Gets or sets the title that appears in the title bar of a Web Part. | |
TitleIconImageUrl | Substitué. Gets or sets the URL to an image used to represent the Web Part in its own title bar. | |
TitleUrl | Substitué. Get or sets a title link. | |
ToolTip | (hérité de WebControl) | |
UniqueID | (hérité de Control) | |
UnknownXmlElements | Gets an UnknownXmlElementCollection object that contains XML elements from an imported SharePoint Web Part that were not mapped to a property on the Web Part. | |
UseDefaultStyles | Gets or sets whether the default font size and style are applied to the Web Part. | |
Verbs | (hérité de WebPart) | |
Visible | (hérité de Control) | |
WebBrowsableObject | (hérité de WebPart) | |
Width | Gets or sets the fixed width for a Web Part. | |
Wrap | (hérité de Panel) | |
Zone | (hérité de WebPart) | |
ZoneID | Gets or sets the Web Part zone in which to render the Web Part. | |
ZoneIndex | (hérité de WebPart) |
Haut de page
Propriétés protégées
Nom | Description | |
---|---|---|
Adapter | (hérité de Control) | |
CacheType | Determines the type of caching being used by the Web server. | |
ChildControlsCreated | (hérité de Control) | |
ClassResourcePath | Gets the base path to Web Part class resources. | |
ClientIDSeparator | (hérité de Control) | |
ContainerWidth | Gets the value set by the page author as a hint to the Web Part of how wide to expect the containing Web Part zone to be. Obsolète. | |
Context | (hérité de Control) | |
DesignMode | (hérité de Control) | |
Events | (hérité de Control) | |
HasChildViewState | (hérité de Control) | |
IdSeparator | (hérité de Control) | |
IsChildControlStateCleared | (hérité de Control) | |
IsEnabled | (hérité de WebControl) | |
IsTrackingViewState | (hérité de Control) | |
IsViewStateEnabled | (hérité de Control) | |
LoadViewStateByID | (hérité de Control) | |
OverflowAuto | Gets a value indicating whether you can override the default setting for the cascading style sheet (CSS) overflow attribute when rendering the Web Part. | |
SaveProperties | Gets or sets whether a Web Part's properties have changed and should be persisted at the end of page rendering. | |
SerializeAll | Gets whether a retrieved property value should be serialized for use in the client-side WPSC property collection. | |
ServerRelativeClassResourcePath | Gets the server-relative path to Web Part class resources. | |
ShouldValidate | Gets a value indicating whether the Web Part infrastructure should perform data validation of Web Part properties before setting them. | |
TagKey | (hérité de WebControl) | |
TagName | (hérité de WebControl) | |
ViewState | (hérité de Control) | |
ViewStateIgnoresCase | (hérité de Control) | |
WebPartManager | (hérité de WebPart) | |
WebPartMenu | Gets or sets the Web Part menu source that is rendered in the frame of the Web Part. | |
WorkItemTimeout | Obsolète. |
Haut de page
Méthodes publiques
(voir aussi Méthodes protégées )
Nom | Description | |
---|---|---|
AfterDeserialize | Called after a SharePoint Web Part's properties are deserialized from the SharePoint database or from a Web Part description file (.dwp). Suggested place for SharePoint Web Part upgrade code. | |
ApplyStyle | (hérité de WebControl) | |
ApplyStyleSheetSkin | (hérité de Control) | |
CanRunAt | Returns a value that indicates where the implementation of a connection interface can run. Obsolète. | |
CopyBaseAttributes | (hérité de WebControl) | |
CreateEditorParts | (hérité de WebPart) | |
CreateWebPartMenu | Called after the Microsoft ASP.NET Load event and used to modify or override the default menu. | |
DataBind | Surchargé. (hérité de Part) | |
Dispose | Substitué. Releases all resources used by the Web Part. | |
EnsureInterfaces | Provides notification for a connectable Web Part that it should ensure all its interfaces are registered using the RegisterInterface method. Obsolète. | |
Equals | Surchargé. (hérité de Object) | |
FindControl | Surchargé. (hérité de Control) | |
Focus | (hérité de Control) | |
GetData | Called when the System.Web.UI.Control.PreRender event occurs to allow a Web Part to retrieve data. Obsolète. | |
GetDesignTimeFooter | Returns the static HTML for the footer portion of a Web Part frame to a custom designer created by deriving from System.Web.UI.ControlDesigner. | |
GetDesignTimeHeader | Returns static HTML for the header portion of a Web Part frame to a custom designer created by deriving from System.Web.UI.ControlDesigner. | |
GetHashCode | (hérité de Object) | |
GetInitEventArgs | Returns the InitEventArgs object for the name of the interface that is passed in. Obsolète. | |
GetRequiresData | The virtual method that is called by the Web Part infrastructure when the System.Web.UI.Control.PreRender event occurs to indicate that a Web Part requires data. Obsolète. | |
GetToolParts | Determines which tool parts are displayed in the tool pane of the Web-based Web Part design user interface, and the order in which they are displayed. | |
GetType | (hérité de Object) | |
HasControls | (hérité de Control) | |
LoadResource | Returns a string that describes the localized name, category, and description of the specified resource. | |
MergeStyle | (hérité de WebControl) | |
PartCacheInvalidate | Surchargé. Marks all the contents of the Web Part cache as outdated. | |
PartCommunicationConnect | Used to notify a Web Part that it has been connected to another Web Part. Obsolète. | |
PartCommunicationInit | Provides a connectable Web Part with a method for firing any of its initialization events, such as the CellProviderInit or CellConsumerInit event. Obsolète. | |
PartCommunicationMain | Provides a connectable Web Part with a method to fire events for any of the main events of a connectable Web Part, such as the CellReady event. Obsolète. | |
ReferenceEquals | (hérité de Object) | |
RenderBeginTag | (hérité de Panel) | |
RenderControl | Surchargé. (hérité de Control) | |
RenderEndTag | (hérité de Panel) | |
ResolveClientUrl | (hérité de Control) | |
ResolveUrl | (hérité de Control) | |
SetPersonalizationDirty | Surchargé. (hérité de WebPart) | |
SetRenderMethodDelegate | (hérité de Control) | |
ShouldSerializeAllowConnect | Returns whether the AllowConnect property has changed from its default value. | |
ShouldSerializeAllowEdit | Returns whether the AllowEdit property has changed from its default value. | |
ShouldSerializeAllowHide | Returns whether the AllowHide property has changed from its default value. | |
ShouldSerializeAllowMinimize | Returns whether the AllowMinimize property has changed from its default value. | |
ShouldSerializeAllowRemove | Returns whether the AllowRemove property has changed from its default value. | |
ShouldSerializeAllowZoneChange | Returns whether the AllowZoneChange property has changed from its default value. | |
ShouldSerializeConnectionID | Returns whether the ConnectionID property has changed from its default value. | |
ShouldSerializeConnections | Returns whether the Connections property has changed from its default value. | |
ShouldSerializeDescription | Returns whether the Description property has changed from its default value. | |
ShouldSerializeDetailLink | Returns whether the DetailLink property has changed from its default value. | |
ShouldSerializeDir | Returns whether the Dir property has changed from its default value. | |
ShouldSerializeExportControlledProperties | Returns whether the ExportControlledProperties property has changed from its default value. | |
ShouldSerializeFrameState | Returns whether the FrameState property has changed from its default value. | |
ShouldSerializeFrameType | Returns whether the FrameType property has changed from its default value. | |
ShouldSerializeHeight | Returns whether the Height property has changed from its default value. | |
ShouldSerializeHelpLink | Returns whether the HelpLink property has changed from its default value. | |
ShouldSerializeHelpMode | Returns whether the HelpMode property has changed from its default value. | |
ShouldSerializeID | Returns whether the ID property has changed from its default value. | |
ShouldSerializeIsIncluded | Returns whether the IsIncluded property has changed from its default value. | |
ShouldSerializeIsIncludedFilter | Returns whether the IsIncludedFilter property has changed from its default value. | |
ShouldSerializeIsVisible | Returns whether the IsVisible property has changed from its default value. | |
ShouldSerializeMissingAssembly | Returns whether the MissingAssembly property has changed from its default value. | |
ShouldSerializePartImageLarge | Returns whether the PartImageLarge property has changed from its default value. | |
ShouldSerializePartImageSmall | Returns whether the PartImageSmall property has changed from its default value. | |
ShouldSerializePartOrder | Returns whether the PartOrder property has changed from its default value. | |
ShouldSerializeTitle | Returns whether the Title property has changed from its default value. | |
ShouldSerializeWidth | Returns whether the Width property has changed from its default value. | |
ShouldSerializeZoneID | Returns whether the ZoneID property has changed from its default value. | |
ToString | (hérité de Object) |
Haut de page
Méthodes protégées
Nom | Description | |
---|---|---|
AddAttributesToRender | (hérité de Panel) | |
AddedControl | (hérité de Control) | |
AddParsedSubObject | Substitué. Used to process Web Part XML for static Web Parts. | |
BuildProfileTree | (hérité de Control) | |
ClearChildControlState | (hérité de Control) | |
ClearChildState | (hérité de Control) | |
ClearChildViewState | (hérité de Control) | |
CreateChildControls | (hérité de Control) | |
CreateControlCollection | (hérité de Control) | |
CreateControlStyle | (hérité de Panel) | |
DataBind | Surchargé. (hérité de Control) | |
DataBindChildren | (hérité de Control) | |
EnsureChildControls | (hérité de Control) | |
EnsureID | (hérité de Control) | |
Finalize | (hérité de Object) | |
FindControl | Surchargé. (hérité de Control) | |
GetCustomBuilder | Provides the ability to associate a dynamic builder with a custom property of a Web Part. | |
GetDesignModeState | (hérité de Control) | |
HasEvents | (hérité de Control) | |
IsLiteralContent | (hérité de Control) | |
LoadControlState | (hérité de Control) | |
LoadViewState | Substitué. Restores view-state information from a previous request that was saved with the SaveViewState method. | |
MapPathSecure | (hérité de Control) | |
MemberwiseClone | (hérité de Object) | |
NotifyWorkItemComplete | Indicates that work being performed on an external asynchronous thread that has been registered using the RegisterWorkItem method has completed. Obsolète. | |
OnBubbleEvent | (hérité de Control) | |
OnClosing | (hérité de WebPart) | |
OnConnectModeChanged | (hérité de WebPart) | |
OnDataBinding | Substitué. The event handler for the System.Web.UI.Control.DataBinding event that occurs when a Web Part is binding to a data source. | |
OnDeleting | (hérité de WebPart) | |
OnEditModeChanged | (hérité de WebPart) | |
OnInit | Substitué. Is the event handler for the System.Web.UI.Control.Init event that occurs as the Web Part is being instantiated. | |
OnLoad | (hérité de Control) | |
OnPreRender | Substitué. The event handler for the System.Web.UI.Control.PreRender event that occurs immediately before the Web Part is rendered to the Web Part Page it is contained on. | |
OnUnload | Substitué. The event handler for the System.Web.UI.Control.Unload event, which occurs when the Web Part is being unloaded from memory. | |
OpenFile | (hérité de Control) | |
PartCacheInvalidate | Surchargé. | |
PartCacheRead | Reads and returns a value from the specified location in the specified type of storage in the Web Part cache. | |
PartCacheWrite | Stores the specified value of the specified type of storage in the Web Part cache. | |
RaiseBubbleEvent | (hérité de Control) | |
RegisterInterface | Surchargé. Registers an interface from the Microsoft.SharePoint.WebPartPages.Communication namespace for a connectable Web Part. | |
RegisterWorkItem | Keeps track of work being done by an external thread, such as a Web Part that handles its own thread pool. Obsolète. | |
RegisterWorkItemCallback | Queues a Web Part work item to the thread pool, invokes the specified delegate, and specifies an object to be passed to the delegate when serviced from the thread pool. Obsolète. | |
RemovedControl | (hérité de Control) | |
Render | Substitué. Inherited from System.Web.UI.Control. | |
RenderChildren | (hérité de Control) | |
RenderContents | (hérité de WebControl) | |
RenderControl | Surchargé. (hérité de Control) | |
RenderWebPart | Renders the HTML for the body of a Web Part to the client. | |
RenderWorkItemTimeout | Renders HTML in a Web Part when a work item has timed out. Obsolète. | |
ReplaceTokens | Performs token replacement for a string, using the same algorithm used for URL-valued properties. | |
RequiresWebPartClientScript | Indicates whether this Web Part has client-side script to register with the Web Part Page Services Component (WPSC) framework. | |
ResolveAdapter | (hérité de Control) | |
SaveControlState | (hérité de Control) | |
SaveViewState | (hérité de WebControl) | |
SetDesignModeState | (hérité de Control) | |
SetPersonalizationDirty | Surchargé. (hérité de WebPart) | |
TrackViewState | (hérité de WebPart) |
Haut de page
Événements publics
Nom | Description | |
---|---|---|
DataBinding | (hérité de Control) | |
Disposed | (hérité de Control) | |
Init | (hérité de Control) | |
Load | (hérité de Control) | |
PreRender | (hérité de Control) | |
Unload | (hérité de Control) |
Haut de page
Implémentations d'interface explicites
Haut de page
Voir aussi
Référence
WebPart, classe
Microsoft.SharePoint.WebPartPages, espace de noms