Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / PersistNameAttribute.cs / 1305376 / PersistNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.MobileControls { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ///[ AttributeUsage(AttributeTargets.Class) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public class PersistNameAttribute : Attribute { /// public static readonly PersistNameAttribute Default = new PersistNameAttribute(String.Empty); private String _name = String.Empty; /// public String Name { get { return this._name; } } /// public PersistNameAttribute(String name) { this._name = name; } /// public override bool Equals(Object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is PersistNameAttribute)) { return(String.Compare(((PersistNameAttribute)obj).Name, _name, StringComparison.OrdinalIgnoreCase) == 0); } return false; } /// public override int GetHashCode() { return _name.ToLower(CultureInfo.InvariantCulture).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
- TextDataBindingHandler.cs
- Binding.cs
- SerializationException.cs
- ToolBarPanel.cs
- NetMsmqSecurityMode.cs
- SemaphoreSecurity.cs
- CollectionDataContractAttribute.cs
- cookiecollection.cs
- XPathDocumentNavigator.cs
- WebBrowserHelper.cs
- NgenServicingAttributes.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- TypeExtensionSerializer.cs
- Style.cs
- ApplicationManager.cs
- XhtmlBasicLiteralTextAdapter.cs
- MetadataImporter.cs
- SafeNativeMethods.cs
- CodeFieldReferenceExpression.cs
- RuleSettingsCollection.cs
- ImageAutomationPeer.cs
- SqlBuilder.cs
- LeafCellTreeNode.cs
- SafeIUnknown.cs
- Button.cs
- CellCreator.cs
- HtmlDocument.cs
- BaseParagraph.cs
- ListItemParagraph.cs
- SettingsPropertyWrongTypeException.cs
- StringSource.cs
- DataControlButton.cs
- XMLDiffLoader.cs
- RowCache.cs
- HtmlControlDesigner.cs
- FileDialogCustomPlacesCollection.cs
- RelationshipWrapper.cs
- IItemProperties.cs
- SymbolType.cs
- DataGridViewBindingCompleteEventArgs.cs
- ExtensibleClassFactory.cs
- SerializableAttribute.cs
- FieldMetadata.cs
- SqlNodeAnnotations.cs
- GeometryDrawing.cs
- MetabaseReader.cs
- DecoderReplacementFallback.cs
- SignedPkcs7.cs
- PersistenceProvider.cs
- ApplyImportsAction.cs
- DefaultMemberAttribute.cs
- MediaPlayer.cs
- versioninfo.cs
- UICuesEvent.cs
- NamedServiceModelExtensionCollectionElement.cs
- PointIndependentAnimationStorage.cs
- ToggleButtonAutomationPeer.cs
- MappedMetaModel.cs
- Composition.cs
- EmptyCollection.cs
- DesignerTransactionCloseEvent.cs
- GlyphElement.cs
- RegistryExceptionHelper.cs
- TraceEventCache.cs
- Parameter.cs
- ToolStripCustomTypeDescriptor.cs
- TabControlDesigner.cs
- QilScopedVisitor.cs
- DiscoveryInnerClientManaged11.cs
- PrintControllerWithStatusDialog.cs
- ViewPort3D.cs
- PropertyValueChangedEvent.cs
- RC2CryptoServiceProvider.cs
- UnsafeNativeMethods.cs
- OlePropertyStructs.cs
- MemberDomainMap.cs
- ObjectQuery_EntitySqlExtensions.cs
- ProcessStartInfo.cs
- PermissionToken.cs
- MatcherBuilder.cs
- TraceEventCache.cs
- ResourceCodeDomSerializer.cs
- CatalogZone.cs
- Transform3D.cs
- ISAPIWorkerRequest.cs
- GridViewCellAutomationPeer.cs
- DataGridPagerStyle.cs
- _BaseOverlappedAsyncResult.cs
- DispatcherOperation.cs
- ViewGenerator.cs
- ConsoleKeyInfo.cs
- WebPartEditorOkVerb.cs
- MeshGeometry3D.cs
- EdmFunction.cs
- SequentialWorkflowRootDesigner.cs
- WindowShowOrOpenTracker.cs
- MouseEventArgs.cs
- documentsequencetextcontainer.cs
- SqlCharStream.cs
- HostSecurityManager.cs