Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaIdentityConstraint.cs / 1305376 / XmlSchemaIdentityConstraint.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.ComponentModel;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaIdentityConstraint : XmlSchemaAnnotated {
string name;
XmlSchemaXPath selector;
XmlSchemaObjectCollection fields = new XmlSchemaObjectCollection();
XmlQualifiedName qualifiedName = XmlQualifiedName.Empty;
CompiledIdentityConstraint compiledConstraint = null;
///
///
/// [To be supplied.]
///
[XmlAttribute("name")]
public string Name {
get { return name; }
set { name = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("selector", typeof(XmlSchemaXPath))]
public XmlSchemaXPath Selector {
get { return selector; }
set { selector = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("field", typeof(XmlSchemaXPath))]
public XmlSchemaObjectCollection Fields {
get { return fields; }
}
///
///
/// [To be supplied.]
///
[XmlIgnore]
public XmlQualifiedName QualifiedName {
get { return qualifiedName; }
}
internal void SetQualifiedName(XmlQualifiedName value) {
qualifiedName = value;
}
[XmlIgnore]
internal CompiledIdentityConstraint CompiledConstraint {
get { return compiledConstraint; }
set { compiledConstraint = value; }
}
[XmlIgnore]
internal override string NameAttribute {
get { return Name; }
set { Name = value; }
}
}
///
///
/// [To be supplied.]
///
public class XmlSchemaXPath : XmlSchemaAnnotated {
string xpath;
///
///
/// [To be supplied.]
///
[XmlAttribute("xpath"), DefaultValue("")]
public string XPath {
get { return xpath; }
set { xpath = value; }
}
}
///
///
/// [To be supplied.]
///
public class XmlSchemaUnique : XmlSchemaIdentityConstraint {
}
///
///
/// [To be supplied.]
///
public class XmlSchemaKey : XmlSchemaIdentityConstraint {
}
///
///
/// [To be supplied.]
///
public class XmlSchemaKeyref : XmlSchemaIdentityConstraint {
XmlQualifiedName refer = XmlQualifiedName.Empty;
///
///
/// [To be supplied.]
///
[XmlAttribute("refer")]
public XmlQualifiedName Refer {
get { return refer; }
set { refer = (value == null ? XmlQualifiedName.Empty : value); }
}
}
}
// 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.ComponentModel;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaIdentityConstraint : XmlSchemaAnnotated {
string name;
XmlSchemaXPath selector;
XmlSchemaObjectCollection fields = new XmlSchemaObjectCollection();
XmlQualifiedName qualifiedName = XmlQualifiedName.Empty;
CompiledIdentityConstraint compiledConstraint = null;
///
///
/// [To be supplied.]
///
[XmlAttribute("name")]
public string Name {
get { return name; }
set { name = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("selector", typeof(XmlSchemaXPath))]
public XmlSchemaXPath Selector {
get { return selector; }
set { selector = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("field", typeof(XmlSchemaXPath))]
public XmlSchemaObjectCollection Fields {
get { return fields; }
}
///
///
/// [To be supplied.]
///
[XmlIgnore]
public XmlQualifiedName QualifiedName {
get { return qualifiedName; }
}
internal void SetQualifiedName(XmlQualifiedName value) {
qualifiedName = value;
}
[XmlIgnore]
internal CompiledIdentityConstraint CompiledConstraint {
get { return compiledConstraint; }
set { compiledConstraint = value; }
}
[XmlIgnore]
internal override string NameAttribute {
get { return Name; }
set { Name = value; }
}
}
///
///
/// [To be supplied.]
///
public class XmlSchemaXPath : XmlSchemaAnnotated {
string xpath;
///
///
/// [To be supplied.]
///
[XmlAttribute("xpath"), DefaultValue("")]
public string XPath {
get { return xpath; }
set { xpath = value; }
}
}
///
///
/// [To be supplied.]
///
public class XmlSchemaUnique : XmlSchemaIdentityConstraint {
}
///
///
/// [To be supplied.]
///
public class XmlSchemaKey : XmlSchemaIdentityConstraint {
}
///
///
/// [To be supplied.]
///
public class XmlSchemaKeyref : XmlSchemaIdentityConstraint {
XmlQualifiedName refer = XmlQualifiedName.Empty;
///
///
/// [To be supplied.]
///
[XmlAttribute("refer")]
public XmlQualifiedName Refer {
get { return refer; }
set { refer = (value == null ? XmlQualifiedName.Empty : value); }
}
}
}
// 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
- _SSPISessionCache.cs
- TimeoutHelper.cs
- SizeAnimationClockResource.cs
- ComponentChangingEvent.cs
- DataGridViewDataErrorEventArgs.cs
- CollectionConverter.cs
- XmlSerializationReader.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- GeometryHitTestResult.cs
- RoutedEventConverter.cs
- UserPreferenceChangingEventArgs.cs
- ImportCatalogPart.cs
- QueryAccessibilityHelpEvent.cs
- BaseCodePageEncoding.cs
- SchemaImporter.cs
- ContentType.cs
- StyleSheetDesigner.cs
- RewritingValidator.cs
- CacheForPrimitiveTypes.cs
- RecordsAffectedEventArgs.cs
- ClickablePoint.cs
- ThreadPoolTaskScheduler.cs
- AuthenticateEventArgs.cs
- SevenBitStream.cs
- Validator.cs
- BitStack.cs
- ControlUtil.cs
- SqlDataSourceConfigureSortForm.cs
- GridEntry.cs
- DropSource.cs
- XmlNodeList.cs
- XmlQuerySequence.cs
- ConfigurationValue.cs
- NamespaceQuery.cs
- VerificationAttribute.cs
- GridItemProviderWrapper.cs
- DBConcurrencyException.cs
- MsmqHostedTransportConfiguration.cs
- MDIClient.cs
- PropertySegmentSerializer.cs
- ProfileService.cs
- TagMapInfo.cs
- RowUpdatingEventArgs.cs
- TableAutomationPeer.cs
- StorageEntitySetMapping.cs
- TranslateTransform.cs
- UserControlFileEditor.cs
- SecurityKeyUsage.cs
- AttributedMetaModel.cs
- PropertyEntry.cs
- SvcMapFile.cs
- ServiceMoniker.cs
- SqlNotificationRequest.cs
- NativeMethods.cs
- PasswordValidationException.cs
- CompositeActivityCodeGenerator.cs
- CommandValueSerializer.cs
- SerializationException.cs
- SignedInfo.cs
- CodeExpressionStatement.cs
- DataRowComparer.cs
- Nullable.cs
- selecteditemcollection.cs
- Literal.cs
- RecipientInfo.cs
- CaseInsensitiveHashCodeProvider.cs
- CLSCompliantAttribute.cs
- BuildResultCache.cs
- CFGGrammar.cs
- ObjectStorage.cs
- SecurityDescriptor.cs
- Zone.cs
- ArcSegment.cs
- JsonReaderDelegator.cs
- HttpConfigurationSystem.cs
- AddInAdapter.cs
- XPathException.cs
- M3DUtil.cs
- EmptyStringExpandableObjectConverter.cs
- CryptoProvider.cs
- SchemaNames.cs
- EntityDataSourceValidationException.cs
- StylusPlugInCollection.cs
- precedingquery.cs
- XmlNodeComparer.cs
- ToolStripDesigner.cs
- TypeValidationEventArgs.cs
- ScriptReference.cs
- ToolStripItemTextRenderEventArgs.cs
- JapaneseLunisolarCalendar.cs
- XmlHierarchicalEnumerable.cs
- BlurEffect.cs
- MemoryPressure.cs
- StylusButton.cs
- ContentElementAutomationPeer.cs
- EventLogQuery.cs
- XmlSchemaSimpleTypeUnion.cs
- SchemaCollectionCompiler.cs
- CheckBox.cs
- CFStream.cs