Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAttributeGroup.cs / 1305376 / XmlSchemaAttributeGroup.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.Xml.Serialization; ////// /// public class XmlSchemaAttributeGroup : XmlSchemaAnnotated { string name; XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection(); XmlSchemaAnyAttribute anyAttribute; XmlQualifiedName qname = XmlQualifiedName.Empty; XmlSchemaAttributeGroup redefined; XmlSchemaObjectTable attributeUses; XmlSchemaAnyAttribute attributeWildcard; int selfReferenceCount; ///[To be supplied.] ////// /// [XmlAttribute("name")] public string Name { get { return name; } set { name = value; } } ///[To be supplied.] ////// /// [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))] public XmlSchemaObjectCollection Attributes { get { return attributes; } } ///[To be supplied.] ////// /// [XmlElement("anyAttribute")] public XmlSchemaAnyAttribute AnyAttribute { get { return anyAttribute; } set { anyAttribute = value; } } [XmlIgnore] public XmlQualifiedName QualifiedName { get { return qname; } } [XmlIgnore] internal XmlSchemaObjectTable AttributeUses { get { if (attributeUses == null) { attributeUses = new XmlSchemaObjectTable(); } return attributeUses; } } [XmlIgnore] internal XmlSchemaAnyAttribute AttributeWildcard { get { return attributeWildcard; } set { attributeWildcard = value; } } ///[To be supplied.] ///[XmlIgnore] public XmlSchemaAttributeGroup RedefinedAttributeGroup { get { return redefined; } } [XmlIgnore] internal XmlSchemaAttributeGroup Redefined { get { return redefined; } set { redefined = value; } } [XmlIgnore] internal int SelfReferenceCount { get { return selfReferenceCount; } set { selfReferenceCount = value; } } [XmlIgnore] internal override string NameAttribute { get { return Name; } set { Name = value; } } internal void SetQualifiedName(XmlQualifiedName value) { qname = value; } internal override XmlSchemaObject Clone() { XmlSchemaAttributeGroup newGroup = (XmlSchemaAttributeGroup)MemberwiseClone(); if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes); //Clear compiled tables newGroup.attributeUses = null; } return newGroup; } } } // 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
- UserPreferenceChangedEventArgs.cs
- DataControlImageButton.cs
- TypeConverter.cs
- selecteditemcollection.cs
- XpsException.cs
- Constants.cs
- UserControl.cs
- XPathDescendantIterator.cs
- FixedElement.cs
- SmtpException.cs
- Timer.cs
- HttpApplicationFactory.cs
- StartUpEventArgs.cs
- SignedInfo.cs
- EntityException.cs
- WebHeaderCollection.cs
- BuilderInfo.cs
- ILGen.cs
- SingleTagSectionHandler.cs
- HostedController.cs
- WebBrowserProgressChangedEventHandler.cs
- ComponentEvent.cs
- Msec.cs
- InternalConfigRoot.cs
- PtsCache.cs
- GenericRootAutomationPeer.cs
- XmlSchemaSimpleTypeUnion.cs
- HttpModuleActionCollection.cs
- WebPartConnectionsCancelVerb.cs
- compensatingcollection.cs
- InfiniteTimeSpanConverter.cs
- RuleValidation.cs
- TextSearch.cs
- OdbcConnectionStringbuilder.cs
- ResourceReader.cs
- DataGridTablesFactory.cs
- MethodImplAttribute.cs
- Internal.cs
- ToolboxDataAttribute.cs
- HostingEnvironment.cs
- PolicyException.cs
- XmlSchemaInclude.cs
- StorageMappingItemLoader.cs
- StatusBarDesigner.cs
- ApplicationGesture.cs
- HttpHandlerActionCollection.cs
- CultureTable.cs
- OutputCacheProfileCollection.cs
- ThrowHelper.cs
- StrokeCollection.cs
- DataKeyPropertyAttribute.cs
- IPHostEntry.cs
- NullableDecimalMinMaxAggregationOperator.cs
- LinqDataSourceInsertEventArgs.cs
- NegatedCellConstant.cs
- EditorPartChrome.cs
- SystemSounds.cs
- WebPartVerbsEventArgs.cs
- CompilationSection.cs
- EventArgs.cs
- MenuTracker.cs
- TraceHandlerErrorFormatter.cs
- DomNameTable.cs
- PropertyChangingEventArgs.cs
- ExpressionVisitor.cs
- StorageSetMapping.cs
- SyndicationSerializer.cs
- SqlTypesSchemaImporter.cs
- RpcCryptoRequest.cs
- PointHitTestParameters.cs
- DesignerDataRelationship.cs
- FamilyCollection.cs
- DBPropSet.cs
- SchemaLookupTable.cs
- WmlCalendarAdapter.cs
- ModulesEntry.cs
- ExchangeUtilities.cs
- DataTableReaderListener.cs
- TrackingParameters.cs
- UnsafeNativeMethods.cs
- EntityContainerEntitySetDefiningQuery.cs
- TextServicesContext.cs
- ObjectListItemCollection.cs
- StringValidator.cs
- CollaborationHelperFunctions.cs
- BindingMemberInfo.cs
- XmlDesigner.cs
- RuleAttributes.cs
- GlyphElement.cs
- Privilege.cs
- VectorCollectionConverter.cs
- XmlDomTextWriter.cs
- ExecutionEngineException.cs
- regiisutil.cs
- AssemblyName.cs
- StylusCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- ChangeTracker.cs
- CharacterMetricsDictionary.cs
- XmlDeclaration.cs