Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAttributeGroup.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathDescendantIterator.cs
- FormDocumentDesigner.cs
- ScrollBarRenderer.cs
- AnnotationResource.cs
- OleDbMetaDataFactory.cs
- GifBitmapEncoder.cs
- DataGridViewColumnEventArgs.cs
- OdbcParameterCollection.cs
- xamlnodes.cs
- DataMisalignedException.cs
- HttpAsyncResult.cs
- InvalidPrinterException.cs
- MouseCaptureWithinProperty.cs
- TreeViewEvent.cs
- HMACSHA384.cs
- TopClause.cs
- GeneratedContractType.cs
- ExpressionConverter.cs
- HttpAsyncResult.cs
- Predicate.cs
- XPathMultyIterator.cs
- WindowCollection.cs
- ApplicationTrust.cs
- ByteAnimation.cs
- InitializationEventAttribute.cs
- ElementProxy.cs
- GeneralTransformCollection.cs
- ProtectedConfigurationSection.cs
- SourceSwitch.cs
- ControlBuilderAttribute.cs
- DesignerActionService.cs
- XmlSchemaAppInfo.cs
- IsolatedStorageFilePermission.cs
- DataGridColumnHeadersPresenter.cs
- ObjectContextServiceProvider.cs
- DeferredSelectedIndexReference.cs
- X509ClientCertificateAuthentication.cs
- HtmlMeta.cs
- ProcessInfo.cs
- Events.cs
- RenderDataDrawingContext.cs
- infer.cs
- ApplicationSecurityManager.cs
- MasterPageCodeDomTreeGenerator.cs
- SettingsSection.cs
- DecimalAnimationBase.cs
- FormattedTextSymbols.cs
- ToolStripDropDownDesigner.cs
- ClientBuildManagerCallback.cs
- IconHelper.cs
- TextElementCollection.cs
- ViewStateModeByIdAttribute.cs
- ParallelLoopState.cs
- ControlCollection.cs
- FixedPageAutomationPeer.cs
- TrustManagerMoreInformation.cs
- PathSegment.cs
- RightsManagementUser.cs
- PointCollection.cs
- SynchronizationContext.cs
- AddInServer.cs
- ZipFileInfo.cs
- BuildProvider.cs
- MetadataArtifactLoaderComposite.cs
- Mapping.cs
- DBBindings.cs
- Expander.cs
- Root.cs
- PostBackOptions.cs
- DataGridViewCellMouseEventArgs.cs
- ActiveXHelper.cs
- Quad.cs
- BitmapEffectGroup.cs
- MulticastOption.cs
- RemotingConfigParser.cs
- Equal.cs
- TraceHandlerErrorFormatter.cs
- TextBlockAutomationPeer.cs
- Model3DCollection.cs
- TouchPoint.cs
- PersonalizableAttribute.cs
- AssemblyName.cs
- InkSerializer.cs
- SqlInfoMessageEvent.cs
- SafeFileMapViewHandle.cs
- ObjectTokenCategory.cs
- FixedTextContainer.cs
- NativeMethods.cs
- StandardTransformFactory.cs
- PrintControllerWithStatusDialog.cs
- XpsResource.cs
- ThousandthOfEmRealDoubles.cs
- ServiceDescriptionContext.cs
- TextBlock.cs
- MetadataUtilsSmi.cs
- CodeCompiler.cs
- ServicePoint.cs
- ModelItemDictionary.cs
- ActivitySurrogateSelector.cs
- CodeMethodReturnStatement.cs