Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PropertyPushdownHelper.cs
- MediaPlayerState.cs
- PathData.cs
- HttpApplication.cs
- ContextMarshalException.cs
- securestring.cs
- LoginNameDesigner.cs
- Calendar.cs
- SingleStorage.cs
- ToolboxComponentsCreatedEventArgs.cs
- translator.cs
- IISMapPath.cs
- GridSplitterAutomationPeer.cs
- ListBindingHelper.cs
- FileRecordSequenceCompletedAsyncResult.cs
- CompareInfo.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CookieProtection.cs
- HitTestDrawingContextWalker.cs
- JsonClassDataContract.cs
- XPathMultyIterator.cs
- BrowsableAttribute.cs
- HttpWrapper.cs
- FilterableAttribute.cs
- ProcessRequestArgs.cs
- ProjectedWrapper.cs
- SQLInt16Storage.cs
- WebPartManager.cs
- _Events.cs
- TextDpi.cs
- FeatureAttribute.cs
- OperationParameterInfoCollection.cs
- PersonalizableAttribute.cs
- DependentList.cs
- Int32Animation.cs
- PreviewKeyDownEventArgs.cs
- TreeNodeStyle.cs
- BuildProviderCollection.cs
- XMLSyntaxException.cs
- FontEmbeddingManager.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BackgroundFormatInfo.cs
- _TLSstream.cs
- ParagraphVisual.cs
- MimeParameter.cs
- ObjectStateManagerMetadata.cs
- SessionStateItemCollection.cs
- SchemaCollectionPreprocessor.cs
- SemaphoreSecurity.cs
- ButtonChrome.cs
- ConfigurationSettings.cs
- Mappings.cs
- TemplatedControlDesigner.cs
- DictionaryContent.cs
- ButtonRenderer.cs
- PeerHopCountAttribute.cs
- ReflectTypeDescriptionProvider.cs
- ExtendedPropertiesHandler.cs
- MsmqAppDomainProtocolHandler.cs
- RootDesignerSerializerAttribute.cs
- CreateParams.cs
- DeclarativeCatalogPartDesigner.cs
- AssemblyResourceLoader.cs
- StylusCaptureWithinProperty.cs
- TextSpan.cs
- SchemaReference.cs
- GridViewCancelEditEventArgs.cs
- Style.cs
- BufferedGraphicsContext.cs
- ToolStripCustomTypeDescriptor.cs
- GACMembershipCondition.cs
- HostSecurityManager.cs
- Automation.cs
- TreeIterator.cs
- OleDbDataReader.cs
- RelationshipConverter.cs
- MatrixStack.cs
- GenericAuthenticationEventArgs.cs
- QilGeneratorEnv.cs
- RewritingProcessor.cs
- SnapLine.cs
- TreeWalker.cs
- Thread.cs
- AppDomainShutdownMonitor.cs
- ProtocolElementCollection.cs
- Cursor.cs
- RequestCacheEntry.cs
- RequiredFieldValidator.cs
- FixedTextSelectionProcessor.cs
- Propagator.JoinPropagator.cs
- WindowsPrincipal.cs
- columnmapkeybuilder.cs
- TypedTableBaseExtensions.cs
- CircleHotSpot.cs
- ObjectListGeneralPage.cs
- ClockGroup.cs
- MouseActionConverter.cs
- BreakSafeBase.cs
- CodeNamespaceImportCollection.cs
- AspCompat.cs