Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- WebPartAddingEventArgs.cs
- ListViewAutomationPeer.cs
- HttpPostedFile.cs
- AxisAngleRotation3D.cs
- smtpconnection.cs
- ObjectResult.cs
- HttpMethodAttribute.cs
- OdbcTransaction.cs
- MarkupWriter.cs
- MemberCollection.cs
- DirectoryRedirect.cs
- MenuItem.cs
- ErrorEventArgs.cs
- XmlResolver.cs
- TypeReference.cs
- DesignOnlyAttribute.cs
- SQLMembershipProvider.cs
- DataGridTextBoxColumn.cs
- XmlTypeMapping.cs
- SqlDataReader.cs
- HttpListenerResponse.cs
- Pts.cs
- CodeVariableReferenceExpression.cs
- NullToBooleanConverter.cs
- BrowserDefinitionCollection.cs
- EntitySetBaseCollection.cs
- InteropTrackingRecord.cs
- ValueTypeFieldReference.cs
- JoinGraph.cs
- ColumnMapProcessor.cs
- NGCPageContentSerializerAsync.cs
- SafeViewOfFileHandle.cs
- ConnectionPoolManager.cs
- Interlocked.cs
- EdmError.cs
- RadioButton.cs
- DataTableExtensions.cs
- ReachPageContentCollectionSerializerAsync.cs
- StorageEndPropertyMapping.cs
- CompilerGlobalScopeAttribute.cs
- Tokenizer.cs
- HttpPostedFile.cs
- Utils.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- UdpDiscoveryEndpointProvider.cs
- SqlConnectionString.cs
- ArgumentException.cs
- Certificate.cs
- UrlParameterReader.cs
- ActiveXSite.cs
- DBNull.cs
- Types.cs
- ToolStripItemGlyph.cs
- FileSystemEventArgs.cs
- XmlEnumAttribute.cs
- OrderedHashRepartitionEnumerator.cs
- DynamicRendererThreadManager.cs
- GenerateTemporaryTargetAssembly.cs
- UTF32Encoding.cs
- ValidationEventArgs.cs
- AttributeCollection.cs
- Model3DCollection.cs
- BamlWriter.cs
- NameScope.cs
- WindowsGrip.cs
- PathFigure.cs
- CachedPathData.cs
- AndMessageFilterTable.cs
- ComponentEvent.cs
- SqlMethodTransformer.cs
- FileDialogPermission.cs
- PackWebRequest.cs
- CustomCategoryAttribute.cs
- ChtmlTextWriter.cs
- WeakEventTable.cs
- XmlStringTable.cs
- _Semaphore.cs
- ConstNode.cs
- SamlSerializer.cs
- HttpResponse.cs
- ProtocolViolationException.cs
- LinqDataSourceHelper.cs
- SQLInt32.cs
- UserInitiatedNavigationPermission.cs
- BamlLocalizationDictionary.cs
- PlatformNotSupportedException.cs
- CngAlgorithm.cs
- ReadOnlyHierarchicalDataSourceView.cs
- InheritanceRules.cs
- FileDialog_Vista.cs
- CollectionType.cs
- AttributeProviderAttribute.cs
- HexParser.cs
- InputScopeManager.cs
- ProfileModule.cs
- StateItem.cs
- PageAsyncTaskManager.cs
- TTSEvent.cs
- ToolStripDropDownClosingEventArgs.cs
- InstanceLockLostException.cs