Share via


SPWebPartManager Members

Include Protected Members
Include Inherited Members

Manages all the Web Part controls, functionality, and events that occur on a webpage.

The SPWebPartManager type exposes the following members.

Constructors

  Name Description
Public method SPWebPartManager Initializes a new instance of the SPWebPartManager class.

Top

Properties

  Name Description
Protected property Adapter (Inherited from Control.)
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property AuthorizationFilterEnabled Gets a flag that indicates whether an authorization filter is enabled in the current page.
Public property AvailableTransformers (Inherited from WebPartManager.)
Public property BindingContainer (Inherited from Control.)
Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Protected property ClientIDSeparator (Inherited from Control.)
Public property CloseProviderWarning (Inherited from WebPartManager.)
Public property Connections (Inherited from WebPartManager.)
Protected property Context (Inherited from Control.)
Public property Controls (Inherited from WebPartManager.)
Public property DeleteWarning (Inherited from WebPartManager.)
Protected property DesignMode (Inherited from Control.)
Public property DisplayMode (Inherited from WebPartManager.)
Public property DisplayModes (Inherited from WebPartManager.)
Public propertyStatic member DownLevelWebPartMenuDisplayMode Gets the WebPartDisplayMode to display the ToolPane with menu options as links instead of the drop-down menu that is displayed in Internet Explorer 9, Internet Explorer 8, Internet Explorer 7, 6, and Internet Explorer 5.5.
Protected property DynamicConnections (Inherited from WebPartManager.)
Public property EnableClientScript (Inherited from WebPartManager.)
Public property EnableTheming (Inherited from WebPartManager.)
Public property EnableViewState (Inherited from Control.)
Protected property Events (Inherited from Control.)
Public property ExportSensitiveDataWarning (Inherited from WebPartManager.)
Public propertyStatic member ExtensibleViewDisplayMode Gets the WebPartDisplayMode to display the ToolPane in extensible view.
Public propertyStatic member GallerySearchDisplayMode Gets the WebPartDisplayMode that enables end users to search for Web Parts in the Web Parts galleries to add to a page.
Protected property HasChildViewState (Inherited from Control.)
Public property HasPersonalizedParts Determines whether the page contains personalized parts.
Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Public propertyStatic member ImportDisplayMode Gets the WebPartDisplayMode that enables end users to import a Web Part to add to the page.
Protected property Internals (Inherited from WebPartManager.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Protected property IsCustomPersonalizationStateDirty Gets a value that indicates whether personalization changes have been made that affect page-level personalization details controlled by the SPWebPartManager control. (Overrides WebPartManager.IsCustomPersonalizationStateDirty.)
Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Protected property LoadViewStateByID (Inherited from Control.)
Public property NamingContainer (Inherited from Control.)
Public propertyStatic member NavigationDisplayMode Gets the WebPartDisplayMode to display the tool pane in Navigation view for older browsers such as Internet Explorer 5.01 or earlier.
Public property Page (Inherited from Control.)
Public property Parent (Inherited from Control.)
Public property Personalization (Inherited from WebPartManager.)
Public property SelectedWebPart (Inherited from WebPartManager.)
Public property ServerRelativeUrl Gets the server relative URL of the current Web Parts page.
Public property Site (Inherited from Control.)
Public property SkinID (Inherited from WebPartManager.)
Public property SPWebPartConnections Gets a collection of SPWebPartConnection objects.
Public property StaticConnections (Inherited from WebPartManager.)
Public property SupportedDisplayModes (Inherited from WebPartManager.)
Public property TemplateControl (Inherited from Control.)
Public property TemplateSourceDirectory (Inherited from Control.)
Public propertyStatic member ToolPaneErrorDisplayMode Gets the WebPartDisplayMode that enables the error message to be displayed in the ToolPane.
Public property UnauthorizedWebParts Gets a collection of unauthorized Web Parts on the page.
Public property UniqueID (Inherited from Control.)
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from Control.)
Public property Visible (Inherited from WebPartManager.)
Public property WebParts (Inherited from WebPartManager.)
Public property Zones (Inherited from WebPartManager.)

Top

Methods

  Name Description
Protected method ActivateConnections Makes active all connections on a webpage that are currently inactive. (Overrides WebPartManager.ActivateConnections().)
Protected method AddedControl (Inherited from Control.)
Protected method AddParsedSubObject (Inherited from Control.)
Public method AddWebPart (Inherited from WebPartManager.)
Public method ApplyStyleSheetSkin (Inherited from Control.)
Public method BeginWebPartConnecting (Inherited from WebPartManager.)
Public method BeginWebPartEditing Starts the process of editing a selected Web Part in the page. (Overrides WebPartManager.BeginWebPartEditing(WebPart).)
Protected method BuildProfileTree (Inherited from Control.)
Public method CanConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint) (Inherited from WebPartManager.)
Public method CanConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer) Checks the Web Parts that will be participating in a connection to determine whether they can be connected, and uses a WebPartTransformer object to create the connection between an incompatible consumer and provider. (Overrides WebPartManager.CanConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer).)
Public method CanSPConnectWebParts Checks the Web Parts that will be participating in a connection to determine whether the SPWebPartConnection can be used to form a connection between them.
Protected method CheckRenderClientScript Indicates whether the SPWebPartManager is required to register client scripts on the page. (Overrides WebPartManager.CheckRenderClientScript().)
Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Public method CloseWebPart (Inherited from WebPartManager.)
Public method ConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint) (Inherited from WebPartManager.)
Public method ConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer) Creates a connection between two Web Parts. (Overrides WebPartManager.ConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer).)
Protected method CopyWebPart Returns the WebPart passed in without creating a copy. (Overrides WebPartManager.CopyWebPart(WebPart).)
Protected method CreateAvailableTransformers Creates a set of transformers specified in the configuration file of a website and adds them to the collection of transformers referenced by the AvailableTransformers property. (Overrides WebPartManager.CreateAvailableTransformers().)
Protected method CreateChildControls (Inherited from Control.)
Protected method CreateControlCollection (Inherited from WebPartManager.)
Protected method CreateDisplayModes Creates the set of all possible display modes for a Web Parts application. (Overrides WebPartManager.CreateDisplayModes().)
Protected method CreateDynamicConnectionID (Inherited from WebPartManager.)
Protected method CreateDynamicWebPartID (Inherited from WebPartManager.)
Protected method CreateErrorWebPart (Inherited from WebPartManager.)
Protected method CreatePersonalization Returns a personalization object to contain a user's personalization data for the current webpage. (Overrides WebPartManager.CreatePersonalization().)
Public method CreateWebPart (Inherited from WebPartManager.)
Public methodStatic member CreateWebPartFromList(SPList) Creates a new Web Part that views a specified list.
Public methodStatic member CreateWebPartFromList(SPList, Boolean) Creates a new Web Part that views a specified list and optionally forces selection of the ListViewWebPart class for the default view of a calendar list.
Public method DataBind() (Inherited from Control.)
Protected method DataBind(Boolean) (Inherited from Control.)
Protected method DataBindChildren (Inherited from Control.)
Public method DeleteWebPart (Inherited from WebPartManager.)
Protected method DisconnectWebPart Removes a Web Part or server control that is being closed or deleted from any connections it is participating in. (Overrides WebPartManager.DisconnectWebPart(WebPart).)
Public method DisconnectWebParts Carries out the process of disconnecting server controls that are connected on a Web page. (Overrides WebPartManager.DisconnectWebParts(WebPartConnection).)
Public method Dispose Enables the SPWebPartManager to perform final cleanup before it is released from memory. (Overrides Control.Dispose().)
Public method EndWebPartConnecting (Inherited from WebPartManager.)
Public method EndWebPartEditing (Inherited from WebPartManager.)
Protected method EnsureChildControls (Inherited from Control.)
Protected method EnsureID (Inherited from Control.)
Public method Equals (Inherited from Object.)
Public method ExportWebPart (Inherited from WebPartManager.)
Protected method Finalize (Inherited from Object.)
Public method FindControl(String) (Inherited from Control.)
Protected method FindControl(String, Int32) (Inherited from Control.)
Public method Focus (Inherited from WebPartManager.)
Public methodStatic member GetClassResourcePath Gets the full URL of a specified Web Part type.
Public method GetConsumerConnectionPoints Returns the collection of consumer connection points that can act as connection points from a Web Part that is acting as a consumer inside a Web Parts connection. (Overrides WebPartManager.GetConsumerConnectionPoints(WebPart).)
Protected method GetDesignModeState (Inherited from Control.)
Public method GetDisplayMode Returns the display mode for a webpage that contains Web Part controls.
Protected method GetDisplayTitle Gets a string that contains the value for the DisplayTitle property of a WebPart control. (Overrides WebPartManager.GetDisplayTitle(WebPart).)
Public method GetExportUrl (Inherited from WebPartManager.)
Public method GetGenericWebPart (Inherited from WebPartManager.)
Public method GetHashCode (Inherited from Object.)
Public method GetPermissions Gets the permissions of the current user on the Web Part.
Public method GetProviderConnectionPoints Returns the collection of provider connection points that can act as connection points from a Web Part that is acting as a provider inside a Web Parts connection. (Overrides WebPartManager.GetProviderConnectionPoints(WebPart).)
Public methodStatic member GetServerRelativeClassResourcePath Gets the server relative URL for a specified Web Part class.
Public method GetStorageKey Returns the storage key for the specified Web Part on the page.
Public method GetType (Inherited from Object.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Public method ImportWebPart Imports an XML description file that contains state and property data for a Web Part, applies the data to the Web Part, and registers the Web Part with the SPWebPartManager. (Overrides WebPartManager.ImportWebPart(XmlReader, String).)
Public method IsAuthorized(WebPart) (Inherited from WebPartManager.)
Public method IsAuthorized(Type, String, String, Boolean) Indicates whether a control is authorized to be added to a page. (Overrides WebPartManager.IsAuthorized(Type, String, String, Boolean).)
Protected method IsLiteralContent (Inherited from Control.)
Protected method LoadControlState This member is reserved for internal use and is not intended to be used directly from your code. (Overrides WebPartManager.LoadControlState(Object).)
Protected method LoadCustomPersonalizationState (Inherited from WebPartManager.)
Protected method LoadViewState (Inherited from Control.)
Protected method MapPathSecure (Inherited from Control.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MoveWebPart (Inherited from WebPartManager.)
Protected method OnAuthorizeWebPart (Inherited from WebPartManager.)
Protected method OnBubbleEvent (Inherited from Control.)
Protected method OnConnectionsActivated (Inherited from WebPartManager.)
Protected method OnConnectionsActivating (Inherited from WebPartManager.)
Protected method OnDataBinding (Inherited from Control.)
Protected method OnDisplayModeChanged (Inherited from WebPartManager.)
Protected method OnDisplayModeChanging (Inherited from WebPartManager.)
Protected method OnInit Handles the Init event. (Overrides WebPartManager.OnInit(EventArgs).)
Protected method OnLoad Handles the Load event. (Overrides Control.OnLoad(EventArgs).)
Protected method OnPreRender Handles the PreRender event. (Overrides WebPartManager.OnPreRender(EventArgs).)
Protected method OnSelectedWebPartChanged (Inherited from WebPartManager.)
Protected method OnSelectedWebPartChanging (Inherited from WebPartManager.)
Protected method OnUnload (Inherited from WebPartManager.)
Protected method OnWebPartAdded Handles the WebPartAdded event. (Overrides WebPartManager.OnWebPartAdded(WebPartEventArgs).)
Protected method OnWebPartAdding Handles the WebPartAdding event. (Overrides WebPartManager.OnWebPartAdding(WebPartAddingEventArgs).)
Protected method OnWebPartClosed Handles the WebPartClosed event. (Overrides WebPartManager.OnWebPartClosed(WebPartEventArgs).)
Protected method OnWebPartClosing (Inherited from WebPartManager.)
Protected method OnWebPartDeleted Handles the WebPartDeleted event. (Overrides WebPartManager.OnWebPartDeleted(WebPartEventArgs).)
Protected method OnWebPartDeleting Handles the WebPartDeleting event. (Overrides WebPartManager.OnWebPartDeleting(WebPartCancelEventArgs).)
Protected method OnWebPartMoved (Inherited from WebPartManager.)
Protected method OnWebPartMoving (Inherited from WebPartManager.)
Protected method OnWebPartsConnected (Inherited from WebPartManager.)
Protected method OnWebPartsConnecting (Inherited from WebPartManager.)
Protected method OnWebPartsDisconnected (Inherited from WebPartManager.)
Protected method OnWebPartsDisconnecting (Inherited from WebPartManager.)
Protected method OpenFile (Inherited from Control.)
Protected method RaiseBubbleEvent (Inherited from Control.)
Protected method RegisterClientScript (Inherited from WebPartManager.)
Protected method RemovedControl (Inherited from Control.)
Protected method Render Renders the SPWebPartManager to the page. (Overrides WebPartManager.Render(HtmlTextWriter).)
Protected method RenderChildren (Inherited from Control.)
Public method RenderControl(HtmlTextWriter) (Inherited from Control.)
Protected method RenderControl(HtmlTextWriter, ControlAdapter) (Inherited from Control.)
Public methodStatic member ReplaceTokens Gets a new string within which the tokens have been replaced by the appropriate values for a specified Web Part.
Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Public method SaveChanges Saves changes to a single Web Part to the content database.
Protected method SaveControlState Saves state data for the SPWebPartManager so the data can be restored on future requests of the page. (Overrides WebPartManager.SaveControlState().)
Protected method SaveCustomPersonalizationState (Inherited from WebPartManager.)
Protected method SaveViewState (Inherited from Control.)
Protected method SetDesignModeState (Inherited from Control.)
Public methodStatic member SetIsIncludedFilter Sets an arbitrary string to determine whether a Web Part is authorized to be added to a page.
Protected method SetPersonalizationDirty (Inherited from WebPartManager.)
Public method SetRenderMethodDelegate (Inherited from Control.)
Protected method SetSelectedWebPart (Inherited from WebPartManager.)
Public method SPConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint) Creates a SPWebPartConnection between two Web Parts with the references to the specified Web Parts and the specified ConnectionPoint objects.
Public method SPConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer) Creates a SPWebPartConnection between two Web Parts with the references to the specified Web Parts, the specified ConnectionPoint objects and a specified WebPartTransformer.
Public method SPDisconnectWebParts Disconnects two connected Web Parts.
Public method ToString (Inherited from Object.)
Protected method TrackViewState (Inherited from WebPartManager.)

Top

Events

  Name Description
Public event AuthorizeWebPart (Inherited from WebPartManager.)
Public event ConnectionsActivated (Inherited from WebPartManager.)
Public event ConnectionsActivating (Inherited from WebPartManager.)
Public event DataBinding (Inherited from Control.)
Public event DisplayModeChanged (Inherited from WebPartManager.)
Public event DisplayModeChanging (Inherited from WebPartManager.)
Public event Disposed (Inherited from Control.)
Public event Init (Inherited from Control.)
Public event Load (Inherited from Control.)
Public event PreRender (Inherited from Control.)
Public event SelectedWebPartChanged (Inherited from WebPartManager.)
Public event SelectedWebPartChanging (Inherited from WebPartManager.)
Public event Unload (Inherited from Control.)
Public event WebPartAdded (Inherited from WebPartManager.)
Public event WebPartAdding (Inherited from WebPartManager.)
Public event WebPartClosed (Inherited from WebPartManager.)
Public event WebPartClosing (Inherited from WebPartManager.)
Public event WebPartDeleted (Inherited from WebPartManager.)
Public event WebPartDeleting (Inherited from WebPartManager.)
Public event WebPartMoved (Inherited from WebPartManager.)
Public event WebPartMoving (Inherited from WebPartManager.)
Public event WebPartsConnected (Inherited from WebPartManager.)
Public event WebPartsConnecting (Inherited from WebPartManager.)
Public event WebPartsDisconnected (Inherited from WebPartManager.)
Public event WebPartsDisconnecting (Inherited from WebPartManager.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IPostBackEventHandler.RaisePostBackEvent Enables the SPWebPartManager to process an event raised when the form is posted to the server.
Explicit interface implemetationPrivate method IParserAccessor.AddParsedSubObject (Inherited from Control.)
Explicit interface implemetationPrivate property IControlBuilderAccessor.ControlBuilder (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.DataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.Expressions (Inherited from Control.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.GetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.HasDataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.HasExpressions (Inherited from Control.)
Explicit interface implemetationPrivate property IPersonalizable.IsDirty (Inherited from WebPartManager.)
Explicit interface implemetationPrivate method IPersonalizable.Load (Inherited from WebPartManager.)
Explicit interface implemetationPrivate method IPersonalizable.Save (Inherited from WebPartManager.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetOwnerControl (Inherited from Control.)
Explicit interface implemetationPrivate property IControlDesignerAccessor.UserData (Inherited from Control.)

Top

See Also

Reference

SPWebPartManager Class

Microsoft.SharePoint.WebPartPages Namespace