Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaIdentityConstraint.cs / 1 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OptimalBreakSession.cs
- PropertyKey.cs
- TriggerBase.cs
- HighlightVisual.cs
- XmlTypeAttribute.cs
- CodeIndexerExpression.cs
- TraceEventCache.cs
- SchemaNames.cs
- EntityDataSourceStatementEditor.cs
- TextEncodedRawTextWriter.cs
- WebPartCatalogCloseVerb.cs
- Error.cs
- StringSource.cs
- PointIndependentAnimationStorage.cs
- Membership.cs
- SystemWebSectionGroup.cs
- DragDeltaEventArgs.cs
- GcHandle.cs
- XmlSchemaGroup.cs
- CodeSnippetStatement.cs
- RoleGroup.cs
- DbParameterCollectionHelper.cs
- ToolStripRendererSwitcher.cs
- LabelExpression.cs
- DefaultAsyncDataDispatcher.cs
- ConfigurationManagerHelper.cs
- ImageAutomationPeer.cs
- SelectedCellsCollection.cs
- BuildResultCache.cs
- ProvidersHelper.cs
- DataGridViewRowPostPaintEventArgs.cs
- ClusterSafeNativeMethods.cs
- Command.cs
- _SecureChannel.cs
- InputElement.cs
- RepeatBehavior.cs
- StackBuilderSink.cs
- ExpanderAutomationPeer.cs
- MarginsConverter.cs
- CmsInterop.cs
- CrossAppDomainChannel.cs
- DataServiceKeyAttribute.cs
- TypeDelegator.cs
- OdbcEnvironment.cs
- ColumnCollection.cs
- GeometryCollection.cs
- EndpointNameMessageFilter.cs
- ELinqQueryState.cs
- Rect3D.cs
- CapabilitiesState.cs
- WeakReferenceList.cs
- OlePropertyStructs.cs
- Serializer.cs
- SpanIndex.cs
- TextContainerHelper.cs
- StorageAssociationSetMapping.cs
- AnnotationAuthorChangedEventArgs.cs
- RandomNumberGenerator.cs
- SmiEventSink.cs
- SqlDuplicator.cs
- Version.cs
- InvokeMethod.cs
- KeyEventArgs.cs
- SqlCacheDependencyDatabase.cs
- BindableAttribute.cs
- ContextInformation.cs
- MetaColumn.cs
- SqlNodeAnnotations.cs
- RadioButtonBaseAdapter.cs
- SoapFaultCodes.cs
- FileDialogCustomPlace.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SeparatorAutomationPeer.cs
- ValueHandle.cs
- IndexedString.cs
- FormsAuthenticationTicket.cs
- EvidenceTypeDescriptor.cs
- Rfc2898DeriveBytes.cs
- CollectionBuilder.cs
- TypeLibConverter.cs
- FindRequestContext.cs
- mda.cs
- XsdDataContractImporter.cs
- CultureSpecificStringDictionary.cs
- BaseTemplateCodeDomTreeGenerator.cs
- WebHttpBehavior.cs
- ThemeInfoAttribute.cs
- OdbcConnectionFactory.cs
- CodeCommentStatement.cs
- SafeRightsManagementQueryHandle.cs
- ScrollItemProviderWrapper.cs
- WebPartEditorApplyVerb.cs
- HitTestWithGeometryDrawingContextWalker.cs
- WindowsTreeView.cs
- tooltip.cs
- AttributeTable.cs
- CanExecuteRoutedEventArgs.cs
- SystemIcons.cs
- DataControlFieldCell.cs
- UserNameSecurityToken.cs