Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / UrlPropertyAttribute.cs / 1305376 / UrlPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Web.Util; // An UrlPropertyAttribute metadata attribute can be applied to string // properties that contain URL values. // This can be used to identify URLs which allows design-time functionality and runtime // functionality to do interesting things with the property values. [AttributeUsage(AttributeTargets.Property)] public sealed class UrlPropertyAttribute : Attribute { private string _filter; // Used to mark a property as an URL. public UrlPropertyAttribute() : this("*.*") { } // Used to mark a property as an URL. In addition, the type of files allowed // can be specified. This can be used at design-time to customize the URL picker. public UrlPropertyAttribute(string filter) { if(filter == null) { _filter = "*.*"; } else { _filter = filter; } } // The file filter associated with the URL property. This takes // the form of a file filter string typically used with Open File // dialogs. The default is *.*, so all file types can be chosen. public string Filter { get { return _filter; } } public override int GetHashCode() { return Filter.GetHashCode(); } public override bool Equals(object obj) { if (obj == this) { return true; } UrlPropertyAttribute other = obj as UrlPropertyAttribute; if (other != null) { return Filter.Equals(other.Filter); } return false; } } } // 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
- FixUp.cs
- MenuTracker.cs
- HashSet.cs
- TextCompositionManager.cs
- LinkClickEvent.cs
- RIPEMD160Managed.cs
- OdbcConnectionString.cs
- EditBehavior.cs
- TextRangeEdit.cs
- HelpEvent.cs
- Variable.cs
- CodeArgumentReferenceExpression.cs
- ActivationArguments.cs
- SafeBitVector32.cs
- QueueProcessor.cs
- ConnectionPoolManager.cs
- TrackBar.cs
- TcpAppDomainProtocolHandler.cs
- ListCollectionView.cs
- MsmqIntegrationBindingElement.cs
- Image.cs
- PrintPreviewDialog.cs
- BrowserCapabilitiesCompiler.cs
- ColorConvertedBitmap.cs
- ToolStripStatusLabel.cs
- MediaScriptCommandRoutedEventArgs.cs
- SkinIDTypeConverter.cs
- cache.cs
- RangeValidator.cs
- UserControlBuildProvider.cs
- Vector3DConverter.cs
- ServiceRoute.cs
- SelectionProviderWrapper.cs
- AtlasWeb.Designer.cs
- ContainerUIElement3D.cs
- _LocalDataStore.cs
- InkPresenterAutomationPeer.cs
- DataGridViewControlCollection.cs
- AspCompat.cs
- ValueConversionAttribute.cs
- BuildProviderUtils.cs
- Vector3DAnimation.cs
- WindowsAltTab.cs
- SafeProcessHandle.cs
- ProfileModule.cs
- Formatter.cs
- Cell.cs
- __Filters.cs
- ManagementPath.cs
- cookieexception.cs
- DataShape.cs
- IconConverter.cs
- XPathBuilder.cs
- DataGridRowHeaderAutomationPeer.cs
- ParagraphResult.cs
- SourceChangedEventArgs.cs
- StreamWriter.cs
- MeasureData.cs
- VirtualPath.cs
- ListControl.cs
- CatalogPartChrome.cs
- NavigationPropertyEmitter.cs
- CodeCatchClause.cs
- Matrix3D.cs
- PathGradientBrush.cs
- EncoderExceptionFallback.cs
- CompositeDesignerAccessibleObject.cs
- FontStretch.cs
- SafeEventLogWriteHandle.cs
- PrivilegeNotHeldException.cs
- EntityCommandCompilationException.cs
- CodeGeneratorOptions.cs
- DragDropHelper.cs
- MetafileHeader.cs
- ObjectNavigationPropertyMapping.cs
- ArcSegment.cs
- Variant.cs
- ExpandSegmentCollection.cs
- WindowsTokenRoleProvider.cs
- Number.cs
- StrokeNodeOperations2.cs
- ClientSideQueueItem.cs
- ItemsChangedEventArgs.cs
- VersionValidator.cs
- cryptoapiTransform.cs
- DelegatedStream.cs
- ToolStripItemTextRenderEventArgs.cs
- BatchServiceHost.cs
- Util.cs
- FormsAuthentication.cs
- PopupEventArgs.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- UnsafeNativeMethodsCLR.cs
- BooleanToVisibilityConverter.cs
- ProfilePropertyMetadata.cs
- IntellisenseTextBox.designer.cs
- Psha1DerivedKeyGenerator.cs
- PolyQuadraticBezierSegment.cs
- CodeSubDirectory.cs
- Matrix.cs