Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- base64Transforms.cs
- CompoundFileIOPermission.cs
- FileSystemEventArgs.cs
- ExecutedRoutedEventArgs.cs
- namescope.cs
- RegularExpressionValidator.cs
- TreeViewEvent.cs
- TextSpanModifier.cs
- CompilationLock.cs
- RowsCopiedEventArgs.cs
- ToolStripSplitStackLayout.cs
- IisTraceListener.cs
- EventBuilder.cs
- AvTraceFormat.cs
- TrustManagerMoreInformation.cs
- DataGridViewTextBoxEditingControl.cs
- oledbconnectionstring.cs
- XsltOutput.cs
- WebEventTraceProvider.cs
- EventHandlersDesigner.cs
- EmptyReadOnlyDictionaryInternal.cs
- ControlParameter.cs
- SmtpClient.cs
- InternalDispatchObject.cs
- TextPatternIdentifiers.cs
- ReferenceList.cs
- ZipIOExtraFieldPaddingElement.cs
- Command.cs
- RowTypePropertyElement.cs
- TextBoxRenderer.cs
- ArgumentException.cs
- EntityDataSourceEntityTypeFilterItem.cs
- XmlEntity.cs
- UDPClient.cs
- EtwTrace.cs
- DispatchWrapper.cs
- AmbientValueAttribute.cs
- Size.cs
- DataSetMappper.cs
- FormViewPagerRow.cs
- SqlUserDefinedTypeAttribute.cs
- PolicyException.cs
- DataRowChangeEvent.cs
- TransformDescriptor.cs
- XmlObjectSerializer.cs
- UserValidatedEventArgs.cs
- PostBackTrigger.cs
- CompositeFontInfo.cs
- RSAProtectedConfigurationProvider.cs
- TargetInvocationException.cs
- StrokeCollection.cs
- OletxDependentTransaction.cs
- HttpBindingExtension.cs
- Roles.cs
- hwndwrapper.cs
- GeometryModel3D.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- TabControlCancelEvent.cs
- FilterQuery.cs
- UIElementHelper.cs
- GPPOINTF.cs
- CheckBox.cs
- EndpointIdentityConverter.cs
- User.cs
- ObjectParameterCollection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TableRow.cs
- GenericsInstances.cs
- ToolBar.cs
- IPEndPoint.cs
- ServiceDebugBehavior.cs
- TreeWalker.cs
- ResizingMessageFilter.cs
- DetailsViewDeleteEventArgs.cs
- SQLChars.cs
- Annotation.cs
- SqlCrossApplyToCrossJoin.cs
- HelloOperation11AsyncResult.cs
- IUnknownConstantAttribute.cs
- AttributeAction.cs
- TraceListener.cs
- BuiltInPermissionSets.cs
- Win32.cs
- ConstNode.cs
- AuthenticateEventArgs.cs
- DataRelationCollection.cs
- DataKeyCollection.cs
- UIPropertyMetadata.cs
- returneventsaver.cs
- RequestCacheValidator.cs
- TypeAccessException.cs
- GeneralTransform3DTo2DTo3D.cs
- NodeFunctions.cs
- TreeNodeClickEventArgs.cs
- DiscardableAttribute.cs
- ReferenceService.cs
- ImageBrush.cs
- HtmlInputHidden.cs
- UriPrefixTable.cs
- MDIControlStrip.cs