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
- ToolStripRenderer.cs
- DataReaderContainer.cs
- PathData.cs
- BaseCodeDomTreeGenerator.cs
- Relationship.cs
- MatrixConverter.cs
- cookiecollection.cs
- SmiEventSink.cs
- InvalidDataException.cs
- StylusTip.cs
- oledbconnectionstring.cs
- NonParentingControl.cs
- SafeEventLogWriteHandle.cs
- FixedHighlight.cs
- XmlILConstructAnalyzer.cs
- X509Chain.cs
- HotCommands.cs
- InstanceLockLostException.cs
- ValueQuery.cs
- BCryptSafeHandles.cs
- StreamUpgradeInitiator.cs
- TypeHelper.cs
- AssemblyGen.cs
- ListViewHitTestInfo.cs
- ListBindingHelper.cs
- SqlPersonalizationProvider.cs
- MappingItemCollection.cs
- ApplicationContext.cs
- CodeDelegateCreateExpression.cs
- OleDbStruct.cs
- StringUtil.cs
- DataPager.cs
- ServiceCredentialsElement.cs
- AutoGeneratedFieldProperties.cs
- templategroup.cs
- SettingsPropertyValueCollection.cs
- OLEDB_Enum.cs
- HybridDictionary.cs
- BitmapEffectrendercontext.cs
- StretchValidation.cs
- Font.cs
- ToolStripDropDown.cs
- SaveFileDialog.cs
- AuthenticatingEventArgs.cs
- PersistNameAttribute.cs
- TdsRecordBufferSetter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- HttpException.cs
- SafeFileHandle.cs
- ReferenceTypeElement.cs
- EntityTemplateUserControl.cs
- ContentDefinition.cs
- MethodExpression.cs
- NegationPusher.cs
- HttpProfileGroupBase.cs
- IntPtr.cs
- HttpModuleCollection.cs
- StylusButtonCollection.cs
- XamlWriter.cs
- ViewCellSlot.cs
- SerializationHelper.cs
- LeaseManager.cs
- ConstraintManager.cs
- TextMessageEncodingElement.cs
- ReferencedCollectionType.cs
- IDQuery.cs
- XmlSchemaException.cs
- MailAddressCollection.cs
- ConfigurationPropertyCollection.cs
- ComPlusServiceLoader.cs
- SecurityContextSecurityTokenResolver.cs
- Exception.cs
- SatelliteContractVersionAttribute.cs
- TrackingProfileDeserializationException.cs
- XmlLoader.cs
- UserControlFileEditor.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ComplexPropertyEntry.cs
- MessageDecoder.cs
- RuntimeWrappedException.cs
- FrameworkContentElementAutomationPeer.cs
- documentsequencetextcontainer.cs
- MemberMaps.cs
- ComponentManagerBroker.cs
- SqlUdtInfo.cs
- SchemaHelper.cs
- PageAction.cs
- HttpBrowserCapabilitiesBase.cs
- ConversionContext.cs
- Mutex.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ISessionStateStore.cs
- SiteIdentityPermission.cs
- FileEnumerator.cs
- SafeRightsManagementEnvironmentHandle.cs
- CompositeFontParser.cs
- _ListenerAsyncResult.cs
- streamingZipPartStream.cs
- TextWriterEngine.cs
- base64Transforms.cs