Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDisplayMode.cs / 1 / WebPartDisplayMode.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class WebPartDisplayMode { private string _name; protected WebPartDisplayMode(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } _name = name; } public virtual bool AllowPageDesign { get { return false; } } public virtual bool AssociatedWithToolZone { get { return false; } } public string Name { get { return _name; } } public virtual bool RequiresPersonalization { get { return false; } } public virtual bool ShowHiddenWebParts { get { return false; } } public virtual bool IsEnabled(WebPartManager webPartManager) { return (!RequiresPersonalization || webPartManager.Personalization.IsModifiable); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Model3DCollection.cs
- BamlBinaryWriter.cs
- SqlWriter.cs
- WindowsRegion.cs
- WrapperSecurityCommunicationObject.cs
- AdornerDecorator.cs
- XmlHierarchicalDataSourceView.cs
- VirtualDirectoryMappingCollection.cs
- TranslateTransform3D.cs
- documentsequencetextcontainer.cs
- AssemblySettingAttributes.cs
- OletxCommittableTransaction.cs
- ManagementClass.cs
- WmiEventSink.cs
- KeySpline.cs
- GridView.cs
- LinqDataSourceInsertEventArgs.cs
- VisualProxy.cs
- ReverseInheritProperty.cs
- HttpListenerPrefixCollection.cs
- PowerModeChangedEventArgs.cs
- MobileCapabilities.cs
- MsmqProcessProtocolHandler.cs
- XamlReaderHelper.cs
- InternalConfigHost.cs
- MarginCollapsingState.cs
- Misc.cs
- ResourceCategoryAttribute.cs
- DataRowView.cs
- HttpClientProtocol.cs
- OdbcStatementHandle.cs
- CatalogPartChrome.cs
- ConnectionStringsExpressionBuilder.cs
- TextMessageEncodingElement.cs
- CustomErrorsSection.cs
- FacetDescription.cs
- ChangeNode.cs
- CalendarAutoFormatDialog.cs
- DataTableCollection.cs
- CounterSetInstance.cs
- PersonalizationDictionary.cs
- ProviderConnectionPoint.cs
- ParallelLoopState.cs
- Context.cs
- Compiler.cs
- ImageAnimator.cs
- SmtpReplyReader.cs
- SqlConnectionString.cs
- arclist.cs
- TypeConverterAttribute.cs
- TypeNameParser.cs
- ToolStripPanelCell.cs
- Pair.cs
- BufferedGraphicsManager.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- WebPartAddingEventArgs.cs
- Matrix.cs
- WorkflowServiceBehavior.cs
- ScrollChrome.cs
- ServicePoint.cs
- QilScopedVisitor.cs
- XmlSchemaChoice.cs
- DiscoveryClientElement.cs
- FloaterParagraph.cs
- DeploymentSection.cs
- OpenFileDialog.cs
- SocketPermission.cs
- ConnectionManagementElementCollection.cs
- SiblingIterators.cs
- BitmapEffectInput.cs
- UrlAuthorizationModule.cs
- ToolStripPanelRow.cs
- ResourceDefaultValueAttribute.cs
- PasswordTextContainer.cs
- DynamicExpression.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SecurityKeyIdentifier.cs
- TextServicesDisplayAttributePropertyRanges.cs
- TypeConverterAttribute.cs
- RoamingStoreFileUtility.cs
- StreamInfo.cs
- DesignerObjectListAdapter.cs
- SqlFactory.cs
- CodeValidator.cs
- PropertyHelper.cs
- GeometryDrawing.cs
- IndexOutOfRangeException.cs
- AsyncResult.cs
- ButtonRenderer.cs
- DataGridColumn.cs
- ActiveXContainer.cs
- PeerToPeerException.cs
- StateMachine.cs
- AuthenticateEventArgs.cs
- TimeoutException.cs
- TableLayoutPanel.cs
- AssemblyCollection.cs
- util.cs
- MetaModel.cs
- CacheForPrimitiveTypes.cs