Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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);
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GetWorkflowTree.cs
- DataGridViewCellEventArgs.cs
- Vector3DAnimationBase.cs
- ConfigurationFileMap.cs
- DataAdapter.cs
- mda.cs
- HMACSHA512.cs
- PageThemeCodeDomTreeGenerator.cs
- typedescriptorpermissionattribute.cs
- ServiceReference.cs
- MaterialGroup.cs
- Pts.cs
- ZipIOCentralDirectoryBlock.cs
- wmiprovider.cs
- DynamicILGenerator.cs
- EntitySetBaseCollection.cs
- PointF.cs
- OneOfConst.cs
- ComplexTypeEmitter.cs
- Pair.cs
- FontResourceCache.cs
- TextLineBreak.cs
- CodeBinaryOperatorExpression.cs
- EdmItemCollection.cs
- Helpers.cs
- storepermissionattribute.cs
- SqlCacheDependencySection.cs
- DynamicValueConverter.cs
- Vector.cs
- HttpBrowserCapabilitiesBase.cs
- LayoutExceptionEventArgs.cs
- WindowsUpDown.cs
- ConfigXmlElement.cs
- ItemsPanelTemplate.cs
- FlowNode.cs
- PixelFormats.cs
- OdbcEnvironmentHandle.cs
- SplitterPanel.cs
- TextDecorationLocationValidation.cs
- QilLoop.cs
- ColumnMapCopier.cs
- StrokeCollectionConverter.cs
- HandlerWithFactory.cs
- ChangeConflicts.cs
- XmlExtensionFunction.cs
- Repeater.cs
- CompoundFileStorageReference.cs
- RawUIStateInputReport.cs
- _LoggingObject.cs
- MenuBase.cs
- RepeatBehavior.cs
- MaskInputRejectedEventArgs.cs
- ProfessionalColors.cs
- SQLChars.cs
- DrawingImage.cs
- SoapCodeExporter.cs
- TokenBasedSet.cs
- CallSiteHelpers.cs
- ProfileEventArgs.cs
- MobileControl.cs
- MutexSecurity.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- Track.cs
- AuthenticationModuleElement.cs
- CodeMethodInvokeExpression.cs
- listitem.cs
- BinaryMethodMessage.cs
- HttpServerVarsCollection.cs
- OleDbCommand.cs
- SimpleWebHandlerParser.cs
- ACE.cs
- ServicePointManager.cs
- PrintControllerWithStatusDialog.cs
- RawStylusInputReport.cs
- WebPartCatalogCloseVerb.cs
- FixedBufferAttribute.cs
- StaticSiteMapProvider.cs
- CompilerGlobalScopeAttribute.cs
- SqlCommandBuilder.cs
- Currency.cs
- FontResourceCache.cs
- EventSourceCreationData.cs
- Color.cs
- EditorReuseAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- CodeLabeledStatement.cs
- DateTimeStorage.cs
- CertificateElement.cs
- StickyNote.cs
- CollectionView.cs
- SerialErrors.cs
- CellNormalizer.cs
- CultureMapper.cs
- NavigationExpr.cs
- TextRangeAdaptor.cs
- XmlElementAttributes.cs
- QilLoop.cs
- ImplicitInputBrush.cs
- HMACSHA512.cs
- SortDescription.cs