Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebDescriptionAttribute.cs / 1 / WebDescriptionAttribute.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 WebDescriptionAttribute : Attribute { public static readonly WebDescriptionAttribute Default = new WebDescriptionAttribute(); private string _description; public WebDescriptionAttribute() : this(String.Empty) { } public WebDescriptionAttribute(string description) { _description = description; } public virtual string Description { get { return DescriptionValue; } } protected string DescriptionValue { get { return _description; } set { _description = value; } } public override bool Equals(object obj) { if (obj == this) { return true; } WebDescriptionAttribute other = obj as WebDescriptionAttribute; return (other != null) && other.Description == Description; } public override int GetHashCode() { return Description.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
- ResourceWriter.cs
- StateDesigner.LayoutSelectionGlyph.cs
- InternalControlCollection.cs
- FocusTracker.cs
- XmlElementAttribute.cs
- TabletDeviceInfo.cs
- TextAction.cs
- XPathAncestorQuery.cs
- SqlConnectionStringBuilder.cs
- BoolExpressionVisitors.cs
- ComboBox.cs
- MasterPageParser.cs
- XmlArrayAttribute.cs
- AssemblyName.cs
- PasswordRecoveryDesigner.cs
- Journal.cs
- MembershipUser.cs
- PrintingPermission.cs
- Handle.cs
- XPathChildIterator.cs
- XmlDataImplementation.cs
- WmlListAdapter.cs
- DataGridSortCommandEventArgs.cs
- XmlWrappingReader.cs
- ReversePositionQuery.cs
- MappingException.cs
- DataTableExtensions.cs
- OverflowException.cs
- XsdDataContractImporter.cs
- ToolStrip.cs
- mansign.cs
- ObjectQuery_EntitySqlExtensions.cs
- ParseNumbers.cs
- RequestUriProcessor.cs
- UnsafeNativeMethods.cs
- ListViewContainer.cs
- BamlTreeNode.cs
- RtType.cs
- MaskedTextBox.cs
- EnumerationRangeValidationUtil.cs
- SecurityTokenAuthenticator.cs
- DataControlFieldTypeEditor.cs
- Int32Storage.cs
- DispatcherSynchronizationContext.cs
- OdbcConnectionHandle.cs
- _ShellExpression.cs
- HttpCookiesSection.cs
- KnownIds.cs
- SafeNativeMethodsCLR.cs
- Queue.cs
- StreamMarshaler.cs
- XmlSchemaComplexContentExtension.cs
- Range.cs
- HotSpotCollection.cs
- ApplicationInfo.cs
- ComponentChangingEvent.cs
- TrackingConditionCollection.cs
- XmlQueryTypeFactory.cs
- CompModSwitches.cs
- StorageModelBuildProvider.cs
- PersonalizationStateInfo.cs
- BulletedListEventArgs.cs
- Console.cs
- IPipelineRuntime.cs
- BoolLiteral.cs
- Add.cs
- ConfigurationFileMap.cs
- DataGridLinkButton.cs
- PathFigureCollection.cs
- SQLInt16Storage.cs
- ManagementEventWatcher.cs
- TrackingParameters.cs
- SchemaLookupTable.cs
- BasicBrowserDialog.designer.cs
- XmlSchemaComplexContent.cs
- RowSpanVector.cs
- FilterableAttribute.cs
- StylusPoint.cs
- CustomErrorsSection.cs
- Shared.cs
- EditCommandColumn.cs
- DataTableNewRowEvent.cs
- OutputCacheProfileCollection.cs
- HttpProfileBase.cs
- SrgsSemanticInterpretationTag.cs
- SQLBoolean.cs
- ResourceSetExpression.cs
- TcpHostedTransportConfiguration.cs
- PseudoWebRequest.cs
- CommandExpr.cs
- SqlNodeTypeOperators.cs
- ConditionedDesigner.cs
- HttpApplication.cs
- Switch.cs
- XsltOutput.cs
- ContextInformation.cs
- GeneralTransformCollection.cs
- DrawTreeNodeEventArgs.cs
- BasicHttpBindingElement.cs
- BamlVersionHeader.cs