Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebDisplayNameAttribute.cs / 1 / WebDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebDisplayNameAttribute : Attribute { public static readonly WebDisplayNameAttribute Default = new WebDisplayNameAttribute(); private string _displayName; public WebDisplayNameAttribute() : this(String.Empty) { } public WebDisplayNameAttribute(string displayName) { _displayName = displayName; } public virtual string DisplayName { get { return DisplayNameValue; } } protected string DisplayNameValue { get { return _displayName; } set { _displayName = value; } } public override bool Equals(object obj) { if (obj == this) { return true; } WebDisplayNameAttribute other = obj as WebDisplayNameAttribute; return (other != null) && other.DisplayName == DisplayName; } public override int GetHashCode() { return DisplayName.GetHashCode(); } ///public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // 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
- GlobalEventManager.cs
- DataObjectPastingEventArgs.cs
- AttributeData.cs
- SqlBuffer.cs
- RotateTransform3D.cs
- SerializerProvider.cs
- Group.cs
- BrowsableAttribute.cs
- BasicDesignerLoader.cs
- HelpProvider.cs
- XamlTypeMapper.cs
- XmlNamedNodeMap.cs
- Command.cs
- ListViewTableCell.cs
- CapabilitiesSection.cs
- SchemaCollectionCompiler.cs
- Avt.cs
- WinInet.cs
- _emptywebproxy.cs
- shaperfactoryquerycachekey.cs
- DPAPIProtectedConfigurationProvider.cs
- DefaultPropertyAttribute.cs
- CodeMemberField.cs
- DetailsViewInsertEventArgs.cs
- CoTaskMemHandle.cs
- LinqDataSourceSelectEventArgs.cs
- QilCloneVisitor.cs
- ProgressChangedEventArgs.cs
- GradientStop.cs
- WebConfigurationHost.cs
- XPathExpr.cs
- DocumentViewerConstants.cs
- FileInfo.cs
- StreamResourceInfo.cs
- DSASignatureDeformatter.cs
- DebuggerAttributes.cs
- MemberMaps.cs
- CheckBox.cs
- FillBehavior.cs
- PropertyDescriptorCollection.cs
- WebServiceClientProxyGenerator.cs
- Ipv6Element.cs
- ClientRolePrincipal.cs
- DetailsViewRow.cs
- MethodMessage.cs
- Opcode.cs
- TraceContext.cs
- ConfigurationSection.cs
- BindingCollection.cs
- ObjectDataSourceEventArgs.cs
- RSAPKCS1SignatureDeformatter.cs
- AnchorEditor.cs
- ReflectTypeDescriptionProvider.cs
- TraceProvider.cs
- CannotUnloadAppDomainException.cs
- RoutingEndpointTrait.cs
- FilterQueryOptionExpression.cs
- HashMembershipCondition.cs
- DesignerLinkAdapter.cs
- HttpRequestCacheValidator.cs
- ProxyAttribute.cs
- HttpModuleAction.cs
- ServicePointManagerElement.cs
- ConstraintEnumerator.cs
- SessionStateModule.cs
- DataGridItemEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- XPathException.cs
- DefaultValidator.cs
- DataServices.cs
- DataServiceQueryOfT.cs
- WebConfigurationFileMap.cs
- DataGridBoolColumn.cs
- PolicyAssertionCollection.cs
- Mapping.cs
- ImageMetadata.cs
- PasswordRecovery.cs
- Activator.cs
- SmiSettersStream.cs
- DataGridViewSelectedCellCollection.cs
- tibetanshape.cs
- ListViewGroupItemCollection.cs
- VisualBrush.cs
- RepeaterCommandEventArgs.cs
- QilInvokeEarlyBound.cs
- KeyboardNavigation.cs
- UnsafeNativeMethodsTablet.cs
- InfoCardPolicy.cs
- PagerSettings.cs
- ElasticEase.cs
- PersonalizationDictionary.cs
- FontFamily.cs
- HtmlInputHidden.cs
- XMLSyntaxException.cs
- TreeWalkHelper.cs
- ContentType.cs
- UIElement3D.cs
- ListBox.cs
- Fx.cs
- transactioncontext.cs