Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleDbParameterCollection.cs
- HttpModule.cs
- UndirectedGraph.cs
- LinqDataSourceHelper.cs
- IsolatedStorageFileStream.cs
- CurrentChangingEventManager.cs
- FileLevelControlBuilderAttribute.cs
- ViewgenGatekeeper.cs
- XmlSortKey.cs
- IDReferencePropertyAttribute.cs
- TypeUsageBuilder.cs
- GridLength.cs
- CqlParser.cs
- TitleStyle.cs
- IdentifierService.cs
- Itemizer.cs
- ClientProxyGenerator.cs
- FieldDescriptor.cs
- ClipboardProcessor.cs
- ListManagerBindingsCollection.cs
- LinkClickEvent.cs
- EqualityArray.cs
- Misc.cs
- DesignerSerializerAttribute.cs
- SecurityException.cs
- CellRelation.cs
- PeerHelpers.cs
- XmlException.cs
- VarInfo.cs
- CanExecuteRoutedEventArgs.cs
- DocumentSequence.cs
- UidPropertyAttribute.cs
- StringUtil.cs
- PTUtility.cs
- OleCmdHelper.cs
- DataGridViewButtonCell.cs
- DataIdProcessor.cs
- ItemMap.cs
- SystemResources.cs
- IBuiltInEvidence.cs
- InfoCardBinaryReader.cs
- ExtentJoinTreeNode.cs
- SizeFConverter.cs
- __Error.cs
- OrthographicCamera.cs
- WebPartAddingEventArgs.cs
- StandardBindingImporter.cs
- HtmlTableCellCollection.cs
- FileSystemWatcher.cs
- FigureParaClient.cs
- ImmutableObjectAttribute.cs
- DataGridTableCollection.cs
- ZoneButton.cs
- Attributes.cs
- DbModificationCommandTree.cs
- WorkflowMarkupSerializerMapping.cs
- CodeLinePragma.cs
- RMEnrollmentPage3.cs
- RegistryKey.cs
- TypedDataSetSchemaImporterExtension.cs
- documentation.cs
- MessageBuilder.cs
- EventProviderWriter.cs
- Vector3D.cs
- UserControlParser.cs
- Scripts.cs
- DecoderFallback.cs
- LineInfo.cs
- HyperLinkField.cs
- ColorTransform.cs
- Terminate.cs
- GridItemPatternIdentifiers.cs
- Trace.cs
- IisTraceWebEventProvider.cs
- EventLogPermissionEntryCollection.cs
- SchemaConstraints.cs
- ParameterCollectionEditor.cs
- HandlerFactoryCache.cs
- SqlConnectionStringBuilder.cs
- GridToolTip.cs
- MemberListBinding.cs
- wgx_sdk_version.cs
- InputScopeAttribute.cs
- ClientData.cs
- ImageConverter.cs
- StrokeIntersection.cs
- CodeCatchClause.cs
- SqlLiftWhereClauses.cs
- oledbmetadatacollectionnames.cs
- TriggerActionCollection.cs
- ServiceModelDictionary.cs
- DependencyPropertyKey.cs
- path.cs
- GridItem.cs
- Number.cs
- RegexTree.cs
- PasswordBoxAutomationPeer.cs
- SqlEnums.cs
- ServiceDeploymentInfo.cs
- TagElement.cs