Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / ControlBuilderAttribute.cs / 1 / ControlBuilderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ControlBuilderAttribute : Attribute { ///Allows a control to specify a custom ///object /// for building that control within the ASP.NET parser. /// /// public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public ControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return ((BuilderType != null) ? BuilderType.GetHashCode() : 0); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is ControlBuilderAttribute)) { return((ControlBuilderAttribute)obj).BuilderType == builderType; } return false; } ////// ///public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ControlBuilderAttribute : Attribute { ///Allows a control to specify a custom ///object /// for building that control within the ASP.NET parser. /// /// public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public ControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return ((BuilderType != null) ? BuilderType.GetHashCode() : 0); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is ControlBuilderAttribute)) { return((ControlBuilderAttribute)obj).BuilderType == builderType; } return false; } ////// ///public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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
- CommandDevice.cs
- SafeCryptContextHandle.cs
- CodeCatchClause.cs
- Collection.cs
- PinnedBufferMemoryStream.cs
- LowerCaseStringConverter.cs
- ExpandableObjectConverter.cs
- ContainerTracking.cs
- HttpUnhandledOperationInvoker.cs
- ObjectDesignerDataSourceView.cs
- LogReservationCollection.cs
- CopyAttributesAction.cs
- XsltInput.cs
- UnionCqlBlock.cs
- DocobjHost.cs
- assemblycache.cs
- GraphicsPath.cs
- TextServicesCompartmentEventSink.cs
- StrongName.cs
- HttpWebRequest.cs
- NumericPagerField.cs
- SynchronizationContext.cs
- RegexFCD.cs
- CurrentTimeZone.cs
- IndentedTextWriter.cs
- DPCustomTypeDescriptor.cs
- DataGridViewColumnConverter.cs
- PackageRelationshipCollection.cs
- TableLayoutStyle.cs
- BuildManagerHost.cs
- XmlILStorageConverter.cs
- ComplexType.cs
- ContextMenu.cs
- GridSplitterAutomationPeer.cs
- HistoryEventArgs.cs
- ResourceManager.cs
- ToolStripManager.cs
- ExecutedRoutedEventArgs.cs
- BasicCellRelation.cs
- Facet.cs
- TextElementEnumerator.cs
- ReliableInputConnection.cs
- ClrPerspective.cs
- DependencyPropertyConverter.cs
- Encoding.cs
- GeneralTransform.cs
- InfoCardRSACryptoProvider.cs
- ProgressPage.cs
- NavigationFailedEventArgs.cs
- SqlGatherProducedAliases.cs
- SerializationHelper.cs
- OleDbCommandBuilder.cs
- GiveFeedbackEvent.cs
- SafeTokenHandle.cs
- PropertyItemInternal.cs
- BitHelper.cs
- AuthenticationModulesSection.cs
- GetWinFXPath.cs
- OdbcTransaction.cs
- TimeSpanValidator.cs
- ErrorHandlingReceiver.cs
- StructuredProperty.cs
- IfJoinedCondition.cs
- StrongNameSignatureInformation.cs
- DynamicActionMessageFilter.cs
- QuotedPrintableStream.cs
- ObjectDataSourceWizardForm.cs
- autovalidator.cs
- CodeNamespace.cs
- XPathDocument.cs
- StorageEndPropertyMapping.cs
- PreProcessInputEventArgs.cs
- ParserStack.cs
- BevelBitmapEffect.cs
- PageThemeBuildProvider.cs
- StyleSelector.cs
- IHttpResponseInternal.cs
- X509SecurityTokenAuthenticator.cs
- WindowsTokenRoleProvider.cs
- ExpressionVisitor.cs
- NameSpaceExtractor.cs
- ZoneMembershipCondition.cs
- Translator.cs
- _LazyAsyncResult.cs
- ConnectionInterfaceCollection.cs
- TypeTypeConverter.cs
- ConfigXmlWhitespace.cs
- PriorityQueue.cs
- KeyPressEvent.cs
- HttpModuleCollection.cs
- DurationConverter.cs
- UntypedNullExpression.cs
- Blend.cs
- TaskbarItemInfo.cs
- Stack.cs
- PropertyEmitterBase.cs
- QilDataSource.cs
- ADMembershipProvider.cs
- NavigationExpr.cs
- DynamicDocumentPaginator.cs