共用方式為


SPWebPartManager members

Include protected members
Include inherited members

管理所有 Web 組件控制項、 功能和發生在網頁的事件。

The SPWebPartManager type exposes the following members.

Constructors

  Name Description
Public method SPWebPartManager 初始化SPWebPartManager類別的新執行個體。

Top

Properties

  Name Description
Protected property Adapter (Inherited from Control.)
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property AuthorizationFilterEnabled 取得旗標,指出是否在目前的頁面中啟用授權篩選。
Public property AvailableTransformers (Inherited from WebPartManager.)
Public property BindingContainer (Inherited from Control.)
Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Public property ClientIDMode (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 DataItemContainer (Inherited from Control.)
Public property DataKeysContainer (Inherited from Control.)
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 取得要做為連結,而不是顯示在 Internet Explorer 9 」、 「 Internet Explorer 8、 「 Internet Explorer 7 的下拉式清單功能表顯示ToolPane以及功能表選項的WebPartDisplayMode 6、 和 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 取得在可延伸的檢視中顯示ToolPaneWebPartDisplayMode
Public propertyStatic member GallerySearchDisplayMode 取得可讓使用者搜尋 Web 組件圖庫中要新增至網頁的 Web 組件WebPartDisplayMode
Protected property HasChildViewState (Inherited from Control.)
Public property HasPersonalizedParts 判斷網頁是否包含個人化的組件。
Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Public propertyStatic member ImportDisplayMode 取得可讓使用者匯入要新增至網頁的網頁組件WebPartDisplayMode
Protected property Internals (Inherited from WebPartManager.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Protected property IsCustomPersonalizationStateDirty 取得值,這個值表示是否已建立個人化變更會影響受SPWebPartManager控制項的網頁層級個人化詳細資料。 (Overrides WebPartManager.IsCustomPersonalizationStateDirty.)
Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Protected property LoadViewStateByID (Inherited from Control.)
Protected property MediumPermissionSet (Inherited from WebPartManager.)
Protected property MinimalPermissionSet (Inherited from WebPartManager.)
Public property NamingContainer (Inherited from Control.)
Public propertyStatic member NavigationDisplayMode 取得WebPartDisplayMode舊的瀏覽器,例如 Internet Explorer 5.01 或更早版本的 [導覽] 檢視中顯示 [工具] 窗格。
Public property Page (Inherited from Control.)
Public property Parent (Inherited from Control.)
Public property Personalization (Inherited from WebPartManager.)
Public property RenderingCompatibility (Inherited from Control.)
Public property SelectedWebPart (Inherited from WebPartManager.)
Public property ServerRelativeUrl 取得目前的Web Parts page的伺服器相對 URL。
Public property Site (Inherited from Control.)
Public property SkinID (Inherited from WebPartManager.)
Public property SPWebPartConnections 取得SPWebPartConnection物件的集合。
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 取得WebPartDisplayMode ,可讓在ToolPane中顯示的錯誤訊息。
Public property UnauthorizedWebParts 取得未經授權的 Web 組件,在頁面上的集合。
Public property UniqueID (Inherited from Control.)
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from Control.)
Public property ViewStateMode (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 可讓使用中網頁上目前非使用中的所有連線。 (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 啟動編輯選取的 Web 組件頁面中的程序。 (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) 檢查會參與以判斷它們是否可以連線,並使用WebPartTransformer物件建立不相容的消費者和提供者之間的連線連接 Web 組件。 (Overrides WebPartManager.CanConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer).)
Public method CanSPConnectWebParts 檢查將參與連接以檢查SPWebPartConnection是否可以用來建立它們之間的連接 Web 組件。
Protected method CheckRenderClientScript 指出是否需要SPWebPartManager註冊頁面上的用戶端指令碼。 (Overrides WebPartManager.CheckRenderClientScript().)
Protected method ClearCachedClientID (Inherited from Control.)
Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Protected method ClearEffectiveClientIDMode (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) 建立兩個 Web 組件之間的連接。 (Overrides WebPartManager.ConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer).)
Protected method CopyWebPart 傳回WebPart傳遞中,而不需要建立複本。 (Overrides WebPartManager.CopyWebPart(WebPart).)
Protected method CreateAvailableTransformers 建立一組網站的組態檔中指定的轉換程式,並將它們加入至集合的AvailableTransformers屬性所參考的轉換程式。 (Overrides WebPartManager.CreateAvailableTransformers().)
Protected method CreateChildControls (Inherited from Control.)
Protected method CreateControlCollection (Inherited from WebPartManager.)
Protected method CreateDisplayModes 建立 Web 組件應用程式的所有可能的顯示模式集合。 (Overrides WebPartManager.CreateDisplayModes().)
Protected method CreateDynamicConnectionID (Inherited from WebPartManager.)
Protected method CreateDynamicWebPartID (Inherited from WebPartManager.)
Protected method CreateErrorWebPart (Inherited from WebPartManager.)
Protected method CreatePersonalization 傳回包含目前網頁的使用者的個人化資料的個人化物件。 (Overrides WebPartManager.CreatePersonalization().)
Public method CreateWebPart (Inherited from WebPartManager.)
Public methodStatic member CreateWebPartFromList(SPList) 建立新的 Web 組件的檢視指定的清單。
Public methodStatic member CreateWebPartFromList(SPList, Boolean) 建立新的 Web 組件的檢視指定的清單,並選擇性地強制的行事曆] 清單的預設檢視的ListViewWebPart類別的選取範圍。
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 移除網頁組件或伺服器也就是控制已關閉,或從它正參與任何連線遭刪除。 (Overrides WebPartManager.DisconnectWebPart(WebPart).)
Public method DisconnectWebParts 執行處理程序的中斷連線連接至網頁的伺服器控制項。 (Overrides WebPartManager.DisconnectWebParts(WebPartConnection).)
Public method Dispose 可讓SPWebPartManager若要從記憶體釋放之前執行最後的清除。 (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 取得指定的網頁組件型別的完整的 URL。
Public method GetConsumerConnectionPoints 傳回可以做為從 Web 組件,做為內部 Web 組件連接消費者的連接點的消費者連接點的集合。 (Overrides WebPartManager.GetConsumerConnectionPoints(WebPart).)
Protected method GetDesignModeState (Inherited from Control.)
Public method GetDisplayMode 傳回包含 Web 組件控制項的網頁的顯示模式。
Protected method GetDisplayTitle 取得字串,包含WebPart控制項的 [ DisplayTitle ] 屬性的值。 (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 在 [網頁組件取得目前使用者的權限。
Public method GetProviderConnectionPoints 傳回可以做為從 Web 組件,做為內部 Web 組件連接提供者連接點的提供者連接點的集合。 (Overrides WebPartManager.GetProviderConnectionPoints(WebPart).)
Public method GetRouteUrl(Object) (Inherited from Control.)
Public method GetRouteUrl(RouteValueDictionary) (Inherited from Control.)
Public method GetRouteUrl(String, Object) (Inherited from Control.)
Public method GetRouteUrl(String, RouteValueDictionary) (Inherited from Control.)
Public methodStatic member GetServerRelativeClassResourcePath 取得指定的網頁組件類別中的伺服器相對 URL。
Public method GetStorageKey 傳回指定的 Web 組件的儲存機碼,頁面上。
Public method GetType (Inherited from Object.)
Public method GetUniqueIDRelativeTo (Inherited from Control.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Public method ImportWebPart 匯入 XML 描述檔,包含 Web 組件的狀態和屬性的資料、 適用於 [網頁組件的資料以及使用SPWebPartManager註冊網頁組件。 (Overrides WebPartManager.ImportWebPart(XmlReader, String).)
Public method IsAuthorized(WebPart) (Inherited from WebPartManager.)
Public method IsAuthorized(Type, String, String, Boolean) 表示控制項是否獲得授權加入至頁面。 (Overrides WebPartManager.IsAuthorized(Type, String, String, Boolean).)
Protected method IsLiteralContent (Inherited from Control.)
Protected method LoadControlState 此成員是保留給內部使用,而不是用來直接從您的程式碼使用 (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 處理Init事件。 (Overrides WebPartManager.OnInit(EventArgs).)
Protected method OnLoad 處理Load事件。 (Overrides Control.OnLoad(EventArgs).)
Protected method OnPreRender 處理PreRender事件。 (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 處理WebPartAdded事件。 (Overrides WebPartManager.OnWebPartAdded(WebPartEventArgs).)
Protected method OnWebPartAdding 處理WebPartAdding事件。 (Overrides WebPartManager.OnWebPartAdding(WebPartAddingEventArgs).)
Protected method OnWebPartClosed 處理WebPartClosed事件。 (Overrides WebPartManager.OnWebPartClosed(WebPartEventArgs).)
Protected method OnWebPartClosing (Inherited from WebPartManager.)
Protected method OnWebPartDeleted 處理WebPartDeleted事件。 (Overrides WebPartManager.OnWebPartDeleted(WebPartEventArgs).)
Protected method OnWebPartDeleting 處理WebPartDeleting事件。 (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 呈現至網頁的SPWebPartManager 。 (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 取得新的字串內的語彙基元已被取代在適當的值所指定的 Web 組件。
Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Public method SaveChanges 將變更儲存至內容資料庫的單一網頁組件。
Protected method SaveControlState 儲存SPWebPartManager的狀態資料,所以可以在未來的要求頁面的上還原資料。 (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 設定要判斷是否授權網頁組件加入至頁面的任意字串。
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) 建立與指定的 Web 組件的參考的兩個 Web 組件和指定的ConnectionPoint物件之間的SPWebPartConnection
Public method SPConnectWebParts(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer) 建立具有指定的 Web 組件、 指定的ConnectionPoint物件和指定的WebPartTransformer參考的兩個 Web 組件之間的SPWebPartConnection
Public method SPDisconnectWebParts 中斷連接兩個連接的 Web 組件。
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 可讓SPWebPartManager來處理表單張貼至伺服器時引發的事件。
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

請參閱

參照

SPWebPartManager class

Microsoft.SharePoint.WebPartPages namespace