Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / TemplateInstanceAttribute.cs / 1 / TemplateInstanceAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.ComponentModel; using System.Security.Permissions; ////// Whether a template is instantiated single or multiple times. /// The code generator generates fields corresponding to controls in the template /// for single instance templates. /// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class TemplateInstanceAttribute : Attribute { public static readonly TemplateInstanceAttribute Multiple = new TemplateInstanceAttribute(TemplateInstance.Multiple); public static readonly TemplateInstanceAttribute Single = new TemplateInstanceAttribute(TemplateInstance.Single); public static readonly TemplateInstanceAttribute Default = Multiple; private TemplateInstance _instances; ////// public TemplateInstanceAttribute(TemplateInstance instances) { _instances = instances; } ////// public TemplateInstance Instances { get { return _instances; } } ///[To be supplied.] ///public override bool Equals(object obj) { if (obj == this) { return true; } TemplateInstanceAttribute other = obj as TemplateInstanceAttribute; if (other != null) { return (other.Instances == Instances); } return false; } /// public override int GetHashCode() { return _instances.GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _AcceptOverlappedAsyncResult.cs
- UDPClient.cs
- CodeDomDesignerLoader.cs
- KeyedHashAlgorithm.cs
- DocumentViewerBaseAutomationPeer.cs
- FormsAuthenticationConfiguration.cs
- LogPolicy.cs
- wgx_render.cs
- ConstructorArgumentAttribute.cs
- TextOptionsInternal.cs
- ResourceKey.cs
- XslAstAnalyzer.cs
- ExpressionPrinter.cs
- WMIGenerator.cs
- DocumentXmlWriter.cs
- SubMenuStyleCollection.cs
- CompilationLock.cs
- SQLBinaryStorage.cs
- HuffCodec.cs
- VSWCFServiceContractGenerator.cs
- InternalTypeHelper.cs
- Byte.cs
- SiteOfOriginPart.cs
- SQLDateTime.cs
- TypeNameConverter.cs
- AttributeQuery.cs
- ListMarkerSourceInfo.cs
- DeferredReference.cs
- RemoteCryptoTokenProvider.cs
- SchemaTableOptionalColumn.cs
- EventlogProvider.cs
- SortedDictionary.cs
- DBSqlParser.cs
- PropertyGrid.cs
- AnimationStorage.cs
- AsnEncodedData.cs
- PublishLicense.cs
- BinaryHeap.cs
- ExpressionPrefixAttribute.cs
- LowerCaseStringConverter.cs
- ExceptionHandlerDesigner.cs
- ObjRef.cs
- TransformDescriptor.cs
- XMLSyntaxException.cs
- ScriptDescriptor.cs
- WebCategoryAttribute.cs
- SQLBinaryStorage.cs
- PrinterUnitConvert.cs
- ShapeTypeface.cs
- DataGridViewRowStateChangedEventArgs.cs
- basevalidator.cs
- ParagraphVisual.cs
- HashAlgorithm.cs
- ZipFileInfo.cs
- PropertyPathConverter.cs
- FieldNameLookup.cs
- Variant.cs
- ImageFormat.cs
- TypeDescriptor.cs
- HostingMessageProperty.cs
- GB18030Encoding.cs
- DiffuseMaterial.cs
- BindingBase.cs
- WindowAutomationPeer.cs
- BasicHttpBindingCollectionElement.cs
- SerialErrors.cs
- Decoder.cs
- EntityTemplateUserControl.cs
- RecordManager.cs
- XmlNavigatorStack.cs
- Geometry.cs
- XmlCompatibilityReader.cs
- FactoryRecord.cs
- DataDocumentXPathNavigator.cs
- DrawingImage.cs
- ProcessProtocolHandler.cs
- SecurityTokenResolver.cs
- ControlBuilder.cs
- GridViewDeleteEventArgs.cs
- Content.cs
- BrowserCapabilitiesCompiler.cs
- SelectionBorderGlyph.cs
- RadialGradientBrush.cs
- WorkflowInstanceProxy.cs
- XmlSchemaAttributeGroupRef.cs
- XmlChoiceIdentifierAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FormCollection.cs
- SrgsElement.cs
- JobPageOrder.cs
- XpsS0ValidatingLoader.cs
- EntityContainer.cs
- XmlEntity.cs
- ControlDesigner.cs
- MonthChangedEventArgs.cs
- Formatter.cs
- DataPagerFieldCollection.cs
- ParseHttpDate.cs
- WebServiceFaultDesigner.cs
- NetworkAddressChange.cs