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
- EventlogProvider.cs
- XmlStreamNodeWriter.cs
- CurrencyManager.cs
- CatalogPart.cs
- SubclassTypeValidatorAttribute.cs
- DBCSCodePageEncoding.cs
- ThreadStaticAttribute.cs
- ConfigurationElementCollection.cs
- X509CertificateTokenFactoryCredential.cs
- ExceptionHandler.cs
- UxThemeWrapper.cs
- DbMetaDataCollectionNames.cs
- GridErrorDlg.cs
- ClaimComparer.cs
- GlobalizationAssembly.cs
- RegexCode.cs
- OleDbParameterCollection.cs
- SmiEventSink.cs
- TagPrefixInfo.cs
- BitmapImage.cs
- HandlerFactoryCache.cs
- FixedSchema.cs
- EntityDataSourceContextCreatedEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- DrawingGroup.cs
- ScriptManagerProxy.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlWriter.cs
- MessageDecoder.cs
- UnsafeNativeMethods.cs
- ProxySimple.cs
- RoleService.cs
- WorkflowOwnershipException.cs
- TextViewBase.cs
- ResourceExpressionBuilder.cs
- ConfigurationManager.cs
- NamespaceCollection.cs
- Journaling.cs
- X509SecurityToken.cs
- _NativeSSPI.cs
- EditCommandColumn.cs
- XmlUrlResolver.cs
- SuppressIldasmAttribute.cs
- GenericWebPart.cs
- Pointer.cs
- CharAnimationUsingKeyFrames.cs
- BlurBitmapEffect.cs
- Label.cs
- SecurityKeyIdentifier.cs
- ExplicitDiscriminatorMap.cs
- EdmEntityTypeAttribute.cs
- Renderer.cs
- GroupBoxRenderer.cs
- DetailsViewInsertEventArgs.cs
- UnknownWrapper.cs
- NativeRecognizer.cs
- EditorPartChrome.cs
- WriteableOnDemandStream.cs
- HttpApplication.cs
- TabControlEvent.cs
- sqlmetadatafactory.cs
- InternalBase.cs
- ChannelManager.cs
- SplitterPanelDesigner.cs
- IPAddress.cs
- UserInitiatedNavigationPermission.cs
- InputLanguageCollection.cs
- AccessDataSourceView.cs
- GradientBrush.cs
- ListBoxItemAutomationPeer.cs
- AsmxEndpointPickerExtension.cs
- TypedRowGenerator.cs
- PolicyUnit.cs
- BuiltInExpr.cs
- BindingOperations.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CacheMemory.cs
- SortQueryOperator.cs
- BaseProcessProtocolHandler.cs
- EncryptedKey.cs
- AuthorizationRuleCollection.cs
- RightsManagementPermission.cs
- PrintDialog.cs
- smtppermission.cs
- StringValidator.cs
- PingReply.cs
- LoadWorkflowAsyncResult.cs
- EditorOptionAttribute.cs
- StubHelpers.cs
- AutomationPropertyInfo.cs
- FlowDocumentReaderAutomationPeer.cs
- AuthenticationSection.cs
- RoutingBehavior.cs
- SoapIgnoreAttribute.cs
- ProfileService.cs
- ToolboxDataAttribute.cs
- BezierSegment.cs
- XmlDataImplementation.cs
- OrderToken.cs
- UnhandledExceptionEventArgs.cs