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
- SqlServices.cs
- SessionStateItemCollection.cs
- VideoDrawing.cs
- ToolStripComboBox.cs
- RequestCacheEntry.cs
- FileRegion.cs
- EditorPart.cs
- SchemaNames.cs
- remotingproxy.cs
- InstancePersistenceContext.cs
- smtppermission.cs
- TimeManager.cs
- Brush.cs
- SqlBulkCopy.cs
- MemoryRecordBuffer.cs
- MemoryResponseElement.cs
- StaticFileHandler.cs
- SynchronizedDispatch.cs
- ContentType.cs
- RowToParametersTransformer.cs
- DirectionalLight.cs
- XPathScanner.cs
- ValidationHelpers.cs
- SslStream.cs
- ActivityMarkupSerializer.cs
- MenuTracker.cs
- UIElement3D.cs
- SiteMapPath.cs
- LinkButton.cs
- BaseCollection.cs
- ReliabilityContractAttribute.cs
- DesignerOptions.cs
- odbcmetadatacollectionnames.cs
- OracleDataAdapter.cs
- SqlDataSourceCache.cs
- XmlQueryType.cs
- TabItemAutomationPeer.cs
- ErrorReporting.cs
- FastEncoder.cs
- WebPartDisplayMode.cs
- RuntimeEnvironment.cs
- RawTextInputReport.cs
- DesignTimeXamlWriter.cs
- FunctionParameter.cs
- ComponentManagerBroker.cs
- OptimisticConcurrencyException.cs
- ReadOnlyDictionary.cs
- WindowsSolidBrush.cs
- MimeMultiPart.cs
- HttpServerUtilityBase.cs
- DocComment.cs
- ExpressionConverter.cs
- XPathSingletonIterator.cs
- MetadataImporter.cs
- HexParser.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AssociationTypeEmitter.cs
- SqlUdtInfo.cs
- Floater.cs
- TextTreeNode.cs
- MobileComponentEditorPage.cs
- ExpressionBindingCollection.cs
- AnonymousIdentificationSection.cs
- HtmlWindow.cs
- AuthorizationSection.cs
- ObjectDataProvider.cs
- TreeSet.cs
- SafeFileMappingHandle.cs
- CultureTableRecord.cs
- complextypematerializer.cs
- OdbcReferenceCollection.cs
- GenericNameHandler.cs
- _TimerThread.cs
- _BaseOverlappedAsyncResult.cs
- CustomWebEventKey.cs
- RecommendedAsConfigurableAttribute.cs
- Sql8ConformanceChecker.cs
- ListView.cs
- RangeValidator.cs
- UrlPath.cs
- COM2AboutBoxPropertyDescriptor.cs
- DocumentSchemaValidator.cs
- DataGridParentRows.cs
- Tokenizer.cs
- FullTextLine.cs
- Int32.cs
- Char.cs
- MemoryStream.cs
- CodeArrayCreateExpression.cs
- MouseCaptureWithinProperty.cs
- InstanceKeyCompleteException.cs
- ExpressionsCollectionEditor.cs
- StoreContentChangedEventArgs.cs
- DataGridColumnCollection.cs
- CompositeScriptReferenceEventArgs.cs
- DictionaryCustomTypeDescriptor.cs
- Error.cs
- UnSafeCharBuffer.cs
- TriggerBase.cs
- DataGridViewCell.cs