Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- Int16Storage.cs
- GroupPartitionExpr.cs
- UnsignedPublishLicense.cs
- DesignerTextViewAdapter.cs
- BaseCollection.cs
- DocumentPageViewAutomationPeer.cs
- FreezableDefaultValueFactory.cs
- FacetValues.cs
- EncoderNLS.cs
- AsmxEndpointPickerExtension.cs
- AbstractExpressions.cs
- QualificationDataItem.cs
- InternalsVisibleToAttribute.cs
- ButtonBase.cs
- SplayTreeNode.cs
- OrderToken.cs
- ExternalCalls.cs
- DependencyObject.cs
- ConfigurationElement.cs
- DataServiceBehavior.cs
- UncommonField.cs
- SqlUserDefinedAggregateAttribute.cs
- DesigntimeLicenseContextSerializer.cs
- ToolboxItemAttribute.cs
- Connector.cs
- WorkItem.cs
- RegexTypeEditor.cs
- XmlUtil.cs
- Transform3DCollection.cs
- Query.cs
- OutArgument.cs
- EntityDataReader.cs
- SemaphoreSecurity.cs
- CodePageEncoding.cs
- AutomationIdentifier.cs
- BrowserCapabilitiesFactoryBase.cs
- DatasetMethodGenerator.cs
- Int16Storage.cs
- Internal.cs
- ClaimTypeElementCollection.cs
- WebServiceReceiveDesigner.cs
- Padding.cs
- RadioButtonRenderer.cs
- Binding.cs
- GridPatternIdentifiers.cs
- FacetDescriptionElement.cs
- StateChangeEvent.cs
- SimpleWorkerRequest.cs
- basecomparevalidator.cs
- CompilerScope.cs
- HwndHostAutomationPeer.cs
- ArcSegment.cs
- WsatTransactionHeader.cs
- VisualTreeHelper.cs
- Context.cs
- ChangeBlockUndoRecord.cs
- MonikerBuilder.cs
- CodeSnippetTypeMember.cs
- Opcode.cs
- SkipQueryOptionExpression.cs
- CodeValidator.cs
- SoapMessage.cs
- DataGridViewCellValueEventArgs.cs
- shaperfactoryquerycachekey.cs
- HitTestDrawingContextWalker.cs
- AddDataControlFieldDialog.cs
- DataServiceEntityAttribute.cs
- OleServicesContext.cs
- BindingOperations.cs
- Sql8ExpressionRewriter.cs
- ReadOnlyHierarchicalDataSource.cs
- ValueConversionAttribute.cs
- Int64AnimationBase.cs
- Environment.cs
- AssertFilter.cs
- Span.cs
- DefaultEventAttribute.cs
- SecurityTokenRequirement.cs
- ApplicationInfo.cs
- LocatorGroup.cs
- DirectionalLight.cs
- invalidudtexception.cs
- DbgUtil.cs
- ErrorFormatterPage.cs
- ToolboxItemImageConverter.cs
- ValidationErrorEventArgs.cs
- SerializationObjectManager.cs
- ToolBar.cs
- AvTraceFormat.cs
- AutomationIdentifierGuids.cs
- COM2ColorConverter.cs
- ReadOnlyHierarchicalDataSource.cs
- PathTooLongException.cs
- AffineTransform3D.cs
- CryptoApi.cs
- Viewport2DVisual3D.cs
- NativeMethods.cs
- TreeBuilderXamlTranslator.cs
- XmlIncludeAttribute.cs
- FlowPosition.cs