Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImageSourceConverter.cs
- FormViewModeEventArgs.cs
- AuthenticationModuleElementCollection.cs
- DeviceFilterDictionary.cs
- New.cs
- Rotation3DAnimation.cs
- Parsers.cs
- TraceLevelStore.cs
- TabControlCancelEvent.cs
- RegexCharClass.cs
- PositiveTimeSpanValidatorAttribute.cs
- DataControlLinkButton.cs
- ManualWorkflowSchedulerService.cs
- SerTrace.cs
- QuadraticBezierSegment.cs
- DomNameTable.cs
- IncrementalHitTester.cs
- DbConnectionOptions.cs
- ImpersonateTokenRef.cs
- FunctionCommandText.cs
- TemplatePropertyEntry.cs
- HostProtectionException.cs
- RestHandlerFactory.cs
- DataGridViewComponentPropertyGridSite.cs
- WmlLabelAdapter.cs
- FilterEventArgs.cs
- XmlDataContract.cs
- ElementProxy.cs
- ToolStripManager.cs
- XmlTypeMapping.cs
- SamlAuthorityBinding.cs
- DefaultAutoFieldGenerator.cs
- UiaCoreApi.cs
- OLEDB_Util.cs
- DrawingDrawingContext.cs
- SecureStringHasher.cs
- InkCollectionBehavior.cs
- GlyphInfoList.cs
- FieldNameLookup.cs
- AffineTransform3D.cs
- GeometryDrawing.cs
- ToolBarButtonClickEvent.cs
- CacheDependency.cs
- EmptyArray.cs
- InstanceDataCollection.cs
- HtmlInputReset.cs
- BaseEntityWrapper.cs
- Encoder.cs
- BamlTreeNode.cs
- MessageQueuePermissionEntryCollection.cs
- StrongNamePublicKeyBlob.cs
- BrowserPolicyValidator.cs
- FixedNode.cs
- XmlCustomFormatter.cs
- BaseCollection.cs
- FormatterServicesNoSerializableCheck.cs
- SqlBooleanMismatchVisitor.cs
- IFlowDocumentViewer.cs
- Debug.cs
- TagNameToTypeMapper.cs
- HScrollBar.cs
- ConnectionOrientedTransportManager.cs
- MultiAsyncResult.cs
- WebBrowserPermission.cs
- ProvidePropertyAttribute.cs
- AssemblyGen.cs
- ColorAnimation.cs
- ScriptHandlerFactory.cs
- EntityDataSourceConfigureObjectContext.cs
- ThicknessKeyFrameCollection.cs
- XmlEncoding.cs
- FileSecurity.cs
- ImageCodecInfoPrivate.cs
- SynchronizedInputProviderWrapper.cs
- DataGridViewDataErrorEventArgs.cs
- StreamSecurityUpgradeProvider.cs
- ExtenderControl.cs
- HtmlAnchor.cs
- AssemblyBuilder.cs
- TreeViewItem.cs
- EntityType.cs
- SiteMapNodeItemEventArgs.cs
- DataMemberConverter.cs
- TextProperties.cs
- SqlWorkflowInstanceStoreLock.cs
- AttachedPropertiesService.cs
- LinqToSqlWrapper.cs
- CallInfo.cs
- XmlSerializationGeneratedCode.cs
- DataGridParentRows.cs
- CodeDomConfigurationHandler.cs
- TreeNodeCollection.cs
- TextShapeableCharacters.cs
- WebPartPersonalization.cs
- ConnectionManager.cs
- KeyInterop.cs
- DataPagerFieldCollection.cs
- Image.cs
- MaskedTextProvider.cs
- HtmlInputRadioButton.cs