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
- Win32KeyboardDevice.cs
- ConsoleTraceListener.cs
- EventDescriptorCollection.cs
- CodeSnippetStatement.cs
- InputElement.cs
- CmsUtils.cs
- DragEvent.cs
- ForEachDesigner.xaml.cs
- ContentPlaceHolder.cs
- BasePropertyDescriptor.cs
- M3DUtil.cs
- ThemeableAttribute.cs
- XPathQilFactory.cs
- TreeNodeBindingCollection.cs
- ControlPersister.cs
- PageEventArgs.cs
- _ListenerRequestStream.cs
- JsonServiceDocumentSerializer.cs
- XmlSchemaValidator.cs
- PackagingUtilities.cs
- SelectionRangeConverter.cs
- PointLight.cs
- Vertex.cs
- RandomNumberGenerator.cs
- ExpressionConverter.cs
- SystemIcons.cs
- ConsumerConnectionPointCollection.cs
- TransformDescriptor.cs
- AdjustableArrowCap.cs
- ExtenderProvidedPropertyAttribute.cs
- Exceptions.cs
- ModelFunctionTypeElement.cs
- XPathDocumentBuilder.cs
- FormatVersion.cs
- BooleanFunctions.cs
- SchemaImporterExtensionElement.cs
- IPipelineRuntime.cs
- RuleSet.cs
- WhereQueryOperator.cs
- IdentifierService.cs
- DecimalStorage.cs
- HuffmanTree.cs
- WindowCollection.cs
- SelectionUIHandler.cs
- InternalsVisibleToAttribute.cs
- ButtonChrome.cs
- NonBatchDirectoryCompiler.cs
- DBSchemaRow.cs
- ArraySubsetEnumerator.cs
- NumericPagerField.cs
- DataGridColumnCollectionEditor.cs
- TreeViewTemplateSelector.cs
- ObjectItemNoOpAssemblyLoader.cs
- ToolStripOverflowButton.cs
- BlobPersonalizationState.cs
- LabelExpression.cs
- LinqDataSourceHelper.cs
- ChangesetResponse.cs
- TableLayoutPanelDesigner.cs
- CodeTypeMemberCollection.cs
- odbcmetadatacolumnnames.cs
- PrefixQName.cs
- HierarchicalDataSourceControl.cs
- HttpProcessUtility.cs
- _DisconnectOverlappedAsyncResult.cs
- Shape.cs
- X509PeerCertificateAuthentication.cs
- _DigestClient.cs
- TheQuery.cs
- TableLayoutColumnStyleCollection.cs
- XamlPoint3DCollectionSerializer.cs
- DragDeltaEventArgs.cs
- PowerModeChangedEventArgs.cs
- ToolStripManager.cs
- DriveNotFoundException.cs
- _CookieModule.cs
- BindValidator.cs
- TrackingProvider.cs
- DataBindingList.cs
- GeneralTransformGroup.cs
- GifBitmapEncoder.cs
- CustomSignedXml.cs
- EdmRelationshipRoleAttribute.cs
- BoolExpression.cs
- EncryptedPackage.cs
- CompilerHelpers.cs
- PropVariant.cs
- ConstantExpression.cs
- AmbientProperties.cs
- Color.cs
- TranslateTransform3D.cs
- Preprocessor.cs
- XmlAnyElementAttribute.cs
- SessionStateSection.cs
- XmlRawWriter.cs
- IdentityNotMappedException.cs
- ByteStream.cs
- EventLogPermissionEntry.cs
- WebPartMinimizeVerb.cs
- LocatorPart.cs