Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PersistenceTypeAttribute.cs
- CachedPathData.cs
- VirtualizingPanel.cs
- SmiEventSink_Default.cs
- DataGridViewCellPaintingEventArgs.cs
- ListChangedEventArgs.cs
- PropertyMapper.cs
- NullToBooleanConverter.cs
- ScanQueryOperator.cs
- LocalizabilityAttribute.cs
- EventListener.cs
- SignedXml.cs
- TemplateControlCodeDomTreeGenerator.cs
- SmtpLoginAuthenticationModule.cs
- SinglePageViewer.cs
- ToolStripItemClickedEventArgs.cs
- UserValidatedEventArgs.cs
- BamlWriter.cs
- XmlDomTextWriter.cs
- LayoutInformation.cs
- PropertyDescriptorGridEntry.cs
- FontDialog.cs
- UnSafeCharBuffer.cs
- DefaultBinder.cs
- RuleRef.cs
- VisualSerializer.cs
- AttributeProviderAttribute.cs
- ApplicationSecurityInfo.cs
- AppSettingsSection.cs
- CodeMemberEvent.cs
- WorkflowFileItem.cs
- XmlDocumentSerializer.cs
- TiffBitmapDecoder.cs
- UnsafeNativeMethods.cs
- EntityObject.cs
- hebrewshape.cs
- NavigationFailedEventArgs.cs
- GestureRecognitionResult.cs
- SupportingTokenSecurityTokenResolver.cs
- SettingsAttributeDictionary.cs
- BooleanConverter.cs
- PowerEase.cs
- XmlExtensionFunction.cs
- ContainerFilterService.cs
- EncodingTable.cs
- WebServiceHost.cs
- ResourceReader.cs
- ManagedIStream.cs
- EventLogPermissionEntry.cs
- GroupLabel.cs
- TransactionScope.cs
- ContextStack.cs
- StateRuntime.cs
- ZoomPercentageConverter.cs
- GiveFeedbackEventArgs.cs
- MessageContractExporter.cs
- ClientTarget.cs
- webproxy.cs
- PermissionRequestEvidence.cs
- PlanCompiler.cs
- Workspace.cs
- ReaderWriterLock.cs
- WindowsBrush.cs
- SemanticBasicElement.cs
- SoapIncludeAttribute.cs
- KeyValueConfigurationElement.cs
- OleDbRowUpdatedEvent.cs
- DbConnectionStringCommon.cs
- DataControlFieldsEditor.cs
- SystemTcpStatistics.cs
- WebWorkflowRole.cs
- ServiceNameElement.cs
- WindowsFormsHelpers.cs
- SystemNetHelpers.cs
- WebReferenceCollection.cs
- Trace.cs
- WindowsUpDown.cs
- ButtonColumn.cs
- ToolStripManager.cs
- MessageQueueAccessControlEntry.cs
- XhtmlBasicListAdapter.cs
- BrowserCapabilitiesCompiler.cs
- AncestorChangedEventArgs.cs
- PolyQuadraticBezierSegment.cs
- MemberRelationshipService.cs
- _AutoWebProxyScriptEngine.cs
- ConfigXmlWhitespace.cs
- NetDataContractSerializer.cs
- ClientTargetSection.cs
- ScrollContentPresenter.cs
- WindowsGraphicsCacheManager.cs
- ACL.cs
- SiteMembershipCondition.cs
- UnmanagedMemoryStream.cs
- RegexParser.cs
- FilePresentation.cs
- RuntimeArgumentHandle.cs
- InstalledFontCollection.cs
- Semaphore.cs
- TransformedBitmap.cs