Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 2 / DataBindingHandlerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // 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
- SQLRoleProvider.cs
- SizeChangedEventArgs.cs
- SmiMetaDataProperty.cs
- ToolZone.cs
- EdmProviderManifest.cs
- SiteOfOriginPart.cs
- DbCommandTree.cs
- ListBox.cs
- ListViewItem.cs
- IListConverters.cs
- SubMenuStyle.cs
- DesignerActionPropertyItem.cs
- NativeMethodsOther.cs
- SimpleMailWebEventProvider.cs
- ValidatingReaderNodeData.cs
- ScaleTransform3D.cs
- ChangeProcessor.cs
- PersonalizablePropertyEntry.cs
- VirtualPathUtility.cs
- BuilderElements.cs
- ValueProviderWrapper.cs
- WebMessageEncodingElement.cs
- ListSortDescription.cs
- DataGridTextBox.cs
- HandoffBehavior.cs
- SqlConnectionPoolGroupProviderInfo.cs
- TextParagraphProperties.cs
- SafeFileMappingHandle.cs
- SecurityTokenTypes.cs
- StreamGeometry.cs
- CompensableActivity.cs
- DataObjectFieldAttribute.cs
- COM2FontConverter.cs
- ProfileSection.cs
- ImageButton.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- HttpCachePolicyElement.cs
- WebPartExportVerb.cs
- SafeHandles.cs
- PageContent.cs
- ValueOfAction.cs
- TextServicesPropertyRanges.cs
- TabOrder.cs
- LoadedOrUnloadedOperation.cs
- EventLogEntry.cs
- ExpressionHelper.cs
- QuaternionAnimationBase.cs
- TextParagraphProperties.cs
- RelationshipSet.cs
- TdsParser.cs
- MetadataCacheItem.cs
- DataSourceGroupCollection.cs
- LinearKeyFrames.cs
- Profiler.cs
- EllipseGeometry.cs
- LinearGradientBrush.cs
- InkPresenterAutomationPeer.cs
- PropertyConverter.cs
- RoleBoolean.cs
- SocketPermission.cs
- DoubleKeyFrameCollection.cs
- AmbiguousMatchException.cs
- Tile.cs
- ToolStripControlHost.cs
- AppSettingsExpressionBuilder.cs
- PerformanceCounterManager.cs
- CompilationUtil.cs
- EmbeddedMailObjectsCollection.cs
- ObjectStateEntry.cs
- Utilities.cs
- PaintEvent.cs
- StateDesignerConnector.cs
- CorrelationTokenTypeConvertor.cs
- RoutedEventHandlerInfo.cs
- ExceptionValidationRule.cs
- PageAsyncTask.cs
- VSDExceptions.cs
- ContractSearchPattern.cs
- XmlSchemaException.cs
- XmlTypeMapping.cs
- ProcessInfo.cs
- PermissionAttributes.cs
- DataGridViewCellStyleChangedEventArgs.cs
- NullableFloatMinMaxAggregationOperator.cs
- OpCodes.cs
- ColumnHeader.cs
- DependencyObjectValidator.cs
- ZipIORawDataFileBlock.cs
- Relationship.cs
- ChildDocumentBlock.cs
- UnmanagedHandle.cs
- EntityType.cs
- LayoutTable.cs
- XmlIterators.cs
- Solver.cs
- HtmlForm.cs
- InvalidOperationException.cs
- AttachmentCollection.cs
- WorkflowCompensationBehavior.cs
- Tokenizer.cs