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
- EncryptedData.cs
- DragDeltaEventArgs.cs
- _Rfc2616CacheValidators.cs
- ActivityWithResultValueSerializer.cs
- InvalidOperationException.cs
- SqlExpressionNullability.cs
- GZipUtils.cs
- WindowsAuthenticationModule.cs
- XamlTypeMapper.cs
- SchemaMapping.cs
- COM2Properties.cs
- RedirectionProxy.cs
- EntityTemplateUserControl.cs
- XsltException.cs
- ConfigXmlComment.cs
- Page.cs
- sqlmetadatafactory.cs
- InfocardChannelParameter.cs
- ChildrenQuery.cs
- ViewEventArgs.cs
- ToolStripAdornerWindowService.cs
- Parameter.cs
- WindowShowOrOpenTracker.cs
- VisualTreeHelper.cs
- NavigationHelper.cs
- SqlProfileProvider.cs
- HatchBrush.cs
- ObjectListCommandsPage.cs
- ExtendedTransformFactory.cs
- TrustLevel.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SortQuery.cs
- EntityProviderFactory.cs
- SegmentInfo.cs
- GlobalProxySelection.cs
- FontFamilyValueSerializer.cs
- MembershipPasswordException.cs
- AssemblyBuilder.cs
- TraceSection.cs
- EpmCustomContentSerializer.cs
- CacheChildrenQuery.cs
- VersionConverter.cs
- MouseEvent.cs
- RuleElement.cs
- HyperLinkStyle.cs
- TagPrefixInfo.cs
- CodeIdentifier.cs
- DropShadowBitmapEffect.cs
- XmlEventCache.cs
- DataObjectFieldAttribute.cs
- TextEditorTables.cs
- DotExpr.cs
- StringInfo.cs
- PackagePart.cs
- ResourcesGenerator.cs
- RemoteWebConfigurationHostStream.cs
- TextPatternIdentifiers.cs
- XPathNodeHelper.cs
- SQLCharsStorage.cs
- TypeContext.cs
- WeakReference.cs
- PageContentCollection.cs
- TrustLevel.cs
- MSAAWinEventWrap.cs
- EventRoute.cs
- WindowsEditBoxRange.cs
- AsymmetricSignatureDeformatter.cs
- DataGridHelper.cs
- ValidatorCompatibilityHelper.cs
- MenuBindingsEditor.cs
- ListViewItem.cs
- MouseButton.cs
- UdpTransportSettingsElement.cs
- PersonalizationProvider.cs
- TextRange.cs
- WindowsToolbarAsMenu.cs
- InvokeProviderWrapper.cs
- ConstructorBuilder.cs
- SizeAnimationClockResource.cs
- RegistrySecurity.cs
- QueryCoreOp.cs
- SevenBitStream.cs
- RelationshipConstraintValidator.cs
- TableLayoutPanel.cs
- OrderPreservingPipeliningSpoolingTask.cs
- IBuiltInEvidence.cs
- NavigatingCancelEventArgs.cs
- SqlUnionizer.cs
- ExecutionProperties.cs
- StylusCaptureWithinProperty.cs
- ByteStack.cs
- XmlILAnnotation.cs
- GlobalEventManager.cs
- SqlDuplicator.cs
- Int32KeyFrameCollection.cs
- GeometryModel3D.cs
- FontClient.cs
- InterleavedZipPartStream.cs
- SMSvcHost.cs
- OrthographicCamera.cs