Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDisplayMode.cs / 1305376 / WebPartDisplayMode.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; 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. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MILUtilities.cs
- CodeExpressionStatement.cs
- StructuredTypeInfo.cs
- ImageListUtils.cs
- TextChange.cs
- SoapTypeAttribute.cs
- shaperfactoryquerycachekey.cs
- ArgumentNullException.cs
- MemberRelationshipService.cs
- EDesignUtil.cs
- WorkflowServiceNamespace.cs
- BigInt.cs
- AttachedAnnotation.cs
- Directory.cs
- TypeSemantics.cs
- XmlQualifiedName.cs
- ClonableStack.cs
- MsmqMessage.cs
- ResourceReader.cs
- mediapermission.cs
- Row.cs
- SiteMap.cs
- NumberFormatInfo.cs
- ServiceParser.cs
- TraceHandler.cs
- EasingKeyFrames.cs
- SmtpDigestAuthenticationModule.cs
- SmtpNtlmAuthenticationModule.cs
- _BaseOverlappedAsyncResult.cs
- ProcessHostServerConfig.cs
- SelectionHighlightInfo.cs
- HttpConfigurationContext.cs
- StylusPointPropertyId.cs
- ClientApiGenerator.cs
- PageContentAsyncResult.cs
- RadioButtonList.cs
- GridViewColumnCollection.cs
- BaseResourcesBuildProvider.cs
- DataListItemCollection.cs
- SystemIPGlobalProperties.cs
- SynchronizingStream.cs
- DBBindings.cs
- LinkedResource.cs
- UTF7Encoding.cs
- OptimisticConcurrencyException.cs
- ToolStripRenderer.cs
- CodeChecksumPragma.cs
- XmlBaseWriter.cs
- WebPartChrome.cs
- ClientUriBehavior.cs
- GeometryValueSerializer.cs
- RoutedEventConverter.cs
- ListMarkerLine.cs
- HwndMouseInputProvider.cs
- EmptyReadOnlyDictionaryInternal.cs
- XmlEntityReference.cs
- OutputCacheSettings.cs
- SpAudioStreamWrapper.cs
- StrongName.cs
- NetNamedPipeBindingElement.cs
- PopupEventArgs.cs
- SqlRemoveConstantOrderBy.cs
- AliasedSlot.cs
- SelectionHighlightInfo.cs
- UseManagedPresentationElement.cs
- ErrorEventArgs.cs
- Expander.cs
- UnmanagedHandle.cs
- DescendentsWalker.cs
- XmlSchemaRedefine.cs
- Assert.cs
- ControlParameter.cs
- PasswordBox.cs
- BaseCodePageEncoding.cs
- SafeRegistryHandle.cs
- GeometryCombineModeValidation.cs
- ContentTextAutomationPeer.cs
- BamlResourceSerializer.cs
- ToolStripProgressBar.cs
- SqlVisitor.cs
- ImageKeyConverter.cs
- CharacterBuffer.cs
- Mappings.cs
- FunctionUpdateCommand.cs
- ProcessManager.cs
- _SslSessionsCache.cs
- TableLayoutSettings.cs
- ScopelessEnumAttribute.cs
- assertwrapper.cs
- TextEditorLists.cs
- X509SecurityToken.cs
- DataMemberListEditor.cs
- TreeNodeClickEventArgs.cs
- DataSourceControl.cs
- BrowserTree.cs
- XNodeNavigator.cs
- XmlIncludeAttribute.cs
- AuthenticationModuleElementCollection.cs
- InputScopeAttribute.cs
- GenericWebPart.cs