Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleTypeRestriction.cs / 1 / XmlSchemaSimpleTypeRestriction.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent {
XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
XmlSchemaSimpleType baseType;
XmlSchemaObjectCollection facets = new XmlSchemaObjectCollection();
///
///
/// [To be supplied.]
///
[XmlAttribute("base")]
public XmlQualifiedName BaseTypeName {
get { return baseTypeName; }
set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
}
///
///
/// [To be supplied.]
///
[XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
public XmlSchemaSimpleType BaseType {
get { return baseType; }
set { baseType = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("length", typeof(XmlSchemaLengthFacet)),
XmlElement("minLength", typeof(XmlSchemaMinLengthFacet)),
XmlElement("maxLength", typeof(XmlSchemaMaxLengthFacet)),
XmlElement("pattern", typeof(XmlSchemaPatternFacet)),
XmlElement("enumeration", typeof(XmlSchemaEnumerationFacet)),
XmlElement("maxInclusive", typeof(XmlSchemaMaxInclusiveFacet)),
XmlElement("maxExclusive", typeof(XmlSchemaMaxExclusiveFacet)),
XmlElement("minInclusive", typeof(XmlSchemaMinInclusiveFacet)),
XmlElement("minExclusive", typeof(XmlSchemaMinExclusiveFacet)),
XmlElement("totalDigits", typeof(XmlSchemaTotalDigitsFacet)),
XmlElement("fractionDigits", typeof(XmlSchemaFractionDigitsFacet)),
XmlElement("whiteSpace", typeof(XmlSchemaWhiteSpaceFacet))]
public XmlSchemaObjectCollection Facets {
get { return facets; }
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleTypeRestriction newRestriction = (XmlSchemaSimpleTypeRestriction)MemberwiseClone();
newRestriction.BaseTypeName = baseTypeName.Clone();
return newRestriction;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent {
XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
XmlSchemaSimpleType baseType;
XmlSchemaObjectCollection facets = new XmlSchemaObjectCollection();
///
///
/// [To be supplied.]
///
[XmlAttribute("base")]
public XmlQualifiedName BaseTypeName {
get { return baseTypeName; }
set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
}
///
///
/// [To be supplied.]
///
[XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
public XmlSchemaSimpleType BaseType {
get { return baseType; }
set { baseType = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("length", typeof(XmlSchemaLengthFacet)),
XmlElement("minLength", typeof(XmlSchemaMinLengthFacet)),
XmlElement("maxLength", typeof(XmlSchemaMaxLengthFacet)),
XmlElement("pattern", typeof(XmlSchemaPatternFacet)),
XmlElement("enumeration", typeof(XmlSchemaEnumerationFacet)),
XmlElement("maxInclusive", typeof(XmlSchemaMaxInclusiveFacet)),
XmlElement("maxExclusive", typeof(XmlSchemaMaxExclusiveFacet)),
XmlElement("minInclusive", typeof(XmlSchemaMinInclusiveFacet)),
XmlElement("minExclusive", typeof(XmlSchemaMinExclusiveFacet)),
XmlElement("totalDigits", typeof(XmlSchemaTotalDigitsFacet)),
XmlElement("fractionDigits", typeof(XmlSchemaFractionDigitsFacet)),
XmlElement("whiteSpace", typeof(XmlSchemaWhiteSpaceFacet))]
public XmlSchemaObjectCollection Facets {
get { return facets; }
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleTypeRestriction newRestriction = (XmlSchemaSimpleTypeRestriction)MemberwiseClone();
newRestriction.BaseTypeName = baseTypeName.Clone();
return newRestriction;
}
}
}
// 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
- CssStyleCollection.cs
- Dictionary.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- WsatServiceCertificate.cs
- RelatedCurrencyManager.cs
- HashMembershipCondition.cs
- DataGridColumn.cs
- CompiledQueryCacheKey.cs
- XmlSerializationGeneratedCode.cs
- CollectionViewGroupRoot.cs
- HostedTransportConfigurationBase.cs
- LinearKeyFrames.cs
- SoapClientMessage.cs
- XmlTypeMapping.cs
- TabControl.cs
- DeflateStream.cs
- ImageInfo.cs
- TextParentUndoUnit.cs
- PkcsMisc.cs
- DesignerValidatorAdapter.cs
- TimelineCollection.cs
- DrawingAttributeSerializer.cs
- ItemContainerGenerator.cs
- AnnotationComponentManager.cs
- SecurityPermission.cs
- ImageCodecInfo.cs
- RIPEMD160.cs
- SqlUtils.cs
- BitmapFrameDecode.cs
- OutputCacheModule.cs
- ExpressionHelper.cs
- DocumentGrid.cs
- DriveInfo.cs
- SqlInternalConnectionSmi.cs
- ObjectParameter.cs
- EventSetter.cs
- StatusBarPanelClickEvent.cs
- EncodingInfo.cs
- MimeWriter.cs
- Cursor.cs
- Query.cs
- PlacementWorkspace.cs
- MetadataItemSerializer.cs
- ImageMap.cs
- SqlRetyper.cs
- BitmapMetadataBlob.cs
- XmlSchemaProviderAttribute.cs
- VectorKeyFrameCollection.cs
- ParameterCollection.cs
- SequentialActivityDesigner.cs
- ConnectionStringEditor.cs
- ToolStripOverflowButton.cs
- XmlSchemaAnnotated.cs
- TreeSet.cs
- RequestCacheManager.cs
- InkPresenter.cs
- NonSerializedAttribute.cs
- WebResourceAttribute.cs
- DataGridViewButtonCell.cs
- BindingExpressionUncommonField.cs
- BitmapEffectGroup.cs
- ChannelManager.cs
- TraceHandler.cs
- SectionVisual.cs
- AliasedSlot.cs
- XmlDigitalSignatureProcessor.cs
- InternalControlCollection.cs
- WorkflowOperationContext.cs
- ObjectSpanRewriter.cs
- NetworkStream.cs
- CodePropertyReferenceExpression.cs
- HeaderedContentControl.cs
- DataControlButton.cs
- EllipseGeometry.cs
- NotifyIcon.cs
- EntityDataSourceWizardForm.cs
- PagePropertiesChangingEventArgs.cs
- TraceRecord.cs
- TextDecorationCollectionConverter.cs
- DebugView.cs
- BaseTemplateBuildProvider.cs
- ContextBase.cs
- HttpHeaderCollection.cs
- _UncName.cs
- AttributeProviderAttribute.cs
- RichTextBox.cs
- FaultHandlingFilter.cs
- Fonts.cs
- ValidationEventArgs.cs
- MediaTimeline.cs
- JoinCqlBlock.cs
- DataPagerFieldCollection.cs
- SharedPerformanceCounter.cs
- BitmapEffectrendercontext.cs
- _NtlmClient.cs
- CollectionBuilder.cs
- UInt32.cs
- ButtonRenderer.cs
- CodeDirectiveCollection.cs
- LinkButton.cs