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
- BrushConverter.cs
- DataView.cs
- NominalTypeEliminator.cs
- HyperLink.cs
- OleStrCAMarshaler.cs
- WebPartConnectionsConnectVerb.cs
- SmtpLoginAuthenticationModule.cs
- XmlSchemaImporter.cs
- ExclusiveTcpTransportManager.cs
- EncoderExceptionFallback.cs
- DbParameterHelper.cs
- ColorConvertedBitmap.cs
- CriticalHandle.cs
- HwndTarget.cs
- SimpleBitVector32.cs
- SByte.cs
- SaveFileDialog.cs
- InvocationExpression.cs
- XmlRawWriter.cs
- CharStorage.cs
- NullNotAllowedCollection.cs
- Part.cs
- InfoCardBaseException.cs
- AVElementHelper.cs
- cookie.cs
- UrlMapping.cs
- XPathSelfQuery.cs
- DeleteIndexBinder.cs
- HMACSHA256.cs
- CodeTypeMember.cs
- OptimisticConcurrencyException.cs
- AssemblyBuilder.cs
- SamlSecurityToken.cs
- SynchronizationScope.cs
- PageAdapter.cs
- SqlConnection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- OutputCacheSettings.cs
- JavascriptCallbackBehaviorAttribute.cs
- SimpleRecyclingCache.cs
- StreamUpgradeBindingElement.cs
- GeometryGroup.cs
- DataGridViewSelectedCellCollection.cs
- Base64Encoder.cs
- MouseOverProperty.cs
- XmlLanguage.cs
- XslCompiledTransform.cs
- TypeLoadException.cs
- BinaryObjectInfo.cs
- RelationshipSet.cs
- SpellerHighlightLayer.cs
- WebBrowserContainer.cs
- UndoUnit.cs
- FastEncoder.cs
- RectConverter.cs
- AccessDataSourceView.cs
- FloatMinMaxAggregationOperator.cs
- _ShellExpression.cs
- EllipseGeometry.cs
- Parameter.cs
- __FastResourceComparer.cs
- HttpProfileBase.cs
- RedirectionProxy.cs
- URLIdentityPermission.cs
- LifetimeServices.cs
- Rotation3DAnimationBase.cs
- DoWorkEventArgs.cs
- SqlInfoMessageEvent.cs
- VisualProxy.cs
- TextEditorTyping.cs
- IList.cs
- SafePointer.cs
- Validator.cs
- PublisherMembershipCondition.cs
- ContractHandle.cs
- XPathBinder.cs
- XPathNavigatorException.cs
- hresults.cs
- EdmItemError.cs
- DrawListViewItemEventArgs.cs
- InfiniteIntConverter.cs
- Misc.cs
- ReachBasicContext.cs
- ContentIterators.cs
- BigInt.cs
- TokenizerHelper.cs
- prompt.cs
- PhonemeEventArgs.cs
- SqlCommandBuilder.cs
- BindingExpressionUncommonField.cs
- KeyToListMap.cs
- AttributeCollection.cs
- localization.cs
- MessageEventSubscriptionService.cs
- CodeIndexerExpression.cs
- WindowsNonControl.cs
- AspNetSynchronizationContext.cs
- DocumentReference.cs
- DataGridColumnEventArgs.cs
- LogLogRecordHeader.cs