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
- AddingNewEventArgs.cs
- TreeViewEvent.cs
- DataGridViewRowsAddedEventArgs.cs
- WindowsToolbar.cs
- ColumnReorderedEventArgs.cs
- InvokeCompletedEventArgs.cs
- Hash.cs
- OleDbDataReader.cs
- DisplayNameAttribute.cs
- Int32Storage.cs
- GridItemCollection.cs
- CredentialCache.cs
- UIPermission.cs
- MultiTargetingUtil.cs
- AxParameterData.cs
- PenContexts.cs
- LogicalExpressionTypeConverter.cs
- CodeDomSerializer.cs
- DataGridViewColumn.cs
- Missing.cs
- StructuralObject.cs
- WmlObjectListAdapter.cs
- HandledEventArgs.cs
- PerformanceCounterCategory.cs
- TrustSection.cs
- ToolBarTray.cs
- AssertValidation.cs
- ContentElement.cs
- DataObjectAttribute.cs
- Vector3DConverter.cs
- Base64Decoder.cs
- DefaultCommandExtensionCallback.cs
- NameValueFileSectionHandler.cs
- EmbeddedMailObject.cs
- GeometryModel3D.cs
- ToolStripDropTargetManager.cs
- WhitespaceSignificantCollectionAttribute.cs
- AppDomainShutdownMonitor.cs
- XmlImplementation.cs
- ProcessThreadCollection.cs
- JournalEntryStack.cs
- ClosureBinding.cs
- MLangCodePageEncoding.cs
- DiffuseMaterial.cs
- TransformProviderWrapper.cs
- SessionEndingEventArgs.cs
- FixedSOMTextRun.cs
- DesignerOptionService.cs
- AuthorizationRuleCollection.cs
- FormViewPagerRow.cs
- MergeLocalizationDirectives.cs
- TextEffect.cs
- FontEmbeddingManager.cs
- Stackframe.cs
- ControlPaint.cs
- SafeWaitHandle.cs
- PathData.cs
- CalendarTable.cs
- PkcsUtils.cs
- MenuCommands.cs
- PersonalizationStateQuery.cs
- ActivityDesignerResources.cs
- PageOutputColor.cs
- TimeoutValidationAttribute.cs
- XmlTextAttribute.cs
- FieldMetadata.cs
- HtmlEmptyTagControlBuilder.cs
- CodeAttributeArgument.cs
- _NetRes.cs
- WeakRefEnumerator.cs
- ObfuscationAttribute.cs
- ServiceModelConfigurationSectionCollection.cs
- UiaCoreApi.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- PolyBezierSegment.cs
- Parser.cs
- PointHitTestResult.cs
- ImportOptions.cs
- querybuilder.cs
- SafeRightsManagementQueryHandle.cs
- ResourcePool.cs
- StorageAssociationSetMapping.cs
- Transactions.cs
- PropertyStore.cs
- TcpTransportBindingElement.cs
- MenuItem.cs
- ToolstripProfessionalRenderer.cs
- EncoderBestFitFallback.cs
- XamlTypeMapperSchemaContext.cs
- SqlDataSourceView.cs
- WinInet.cs
- DynamicEntity.cs
- RecognizedPhrase.cs
- PropertyGridCommands.cs
- OleStrCAMarshaler.cs
- FileInfo.cs
- ScriptIgnoreAttribute.cs
- IteratorDescriptor.cs
- SecurityHelper.cs
- NameObjectCollectionBase.cs