Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.
//
// [....]
//-----------------------------------------------------------------------------
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
- CommandHelper.cs
- CompiledQuery.cs
- SynchronousChannelMergeEnumerator.cs
- ListCollectionView.cs
- ContentHostHelper.cs
- XPathPatternBuilder.cs
- formatter.cs
- Exceptions.cs
- StateWorkerRequest.cs
- Tuple.cs
- FileDetails.cs
- SchemaTypeEmitter.cs
- RelationshipConverter.cs
- SqlDuplicator.cs
- TableStyle.cs
- XPathNodeHelper.cs
- XmlWriter.cs
- XmlSchemaExternal.cs
- Stylesheet.cs
- DefaultExpressionVisitor.cs
- ListViewPagedDataSource.cs
- TypeLoadException.cs
- WebEventCodes.cs
- QilValidationVisitor.cs
- ScriptResourceHandler.cs
- ObsoleteAttribute.cs
- KeyedCollection.cs
- CompositeDispatchFormatter.cs
- _KerberosClient.cs
- IndexedString.cs
- EntityStoreSchemaGenerator.cs
- KeyedQueue.cs
- WpfPayload.cs
- IntranetCredentialPolicy.cs
- BaseProcessProtocolHandler.cs
- Selection.cs
- RadioButtonPopupAdapter.cs
- AuthenticationModuleElement.cs
- MarkupWriter.cs
- IPAddress.cs
- JsonFormatReaderGenerator.cs
- PresentationTraceSources.cs
- MessageSecurityOverHttp.cs
- Descriptor.cs
- BrushValueSerializer.cs
- PropertyIDSet.cs
- FormsAuthenticationEventArgs.cs
- ParameterToken.cs
- System.Data_BID.cs
- RegistryKey.cs
- _HeaderInfo.cs
- HtmlMeta.cs
- DeferredTextReference.cs
- EntityTemplateFactory.cs
- ListItemConverter.cs
- XmlSchemaAnyAttribute.cs
- LockCookie.cs
- DataObjectCopyingEventArgs.cs
- BitmapEffectDrawingContextState.cs
- PtsPage.cs
- Highlights.cs
- CodeAssignStatement.cs
- SymLanguageVendor.cs
- EpmContentSerializerBase.cs
- HostedBindingBehavior.cs
- ImageDrawing.cs
- OracleDataAdapter.cs
- DataGridHelper.cs
- ValidatingReaderNodeData.cs
- XmlDocument.cs
- XmlAnyElementAttribute.cs
- XPathBinder.cs
- DrawingImage.cs
- NonParentingControl.cs
- SiteMapNode.cs
- DataGridViewLayoutData.cs
- SecurityTokenException.cs
- ActivityCodeGenerator.cs
- WindowsSpinner.cs
- DeploymentExceptionMapper.cs
- XmlConverter.cs
- CatalogZone.cs
- SocketManager.cs
- ConversionContext.cs
- StylusCaptureWithinProperty.cs
- DataSetViewSchema.cs
- DataTableReaderListener.cs
- MenuCommands.cs
- ClientScriptManager.cs
- DataGrid.cs
- DbCommandTree.cs
- InspectionWorker.cs
- XmlWhitespace.cs
- SqlConnectionPoolProviderInfo.cs
- DataGridRowDetailsEventArgs.cs
- WebPartActionVerb.cs
- SqlInternalConnectionTds.cs
- ADMembershipUser.cs
- ThaiBuddhistCalendar.cs
- WebDescriptionAttribute.cs