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
- NativeMethodsOther.cs
- ApplicationSecurityInfo.cs
- JavaScriptObjectDeserializer.cs
- Encoder.cs
- TextEvent.cs
- CodeAttributeDeclarationCollection.cs
- IgnoreSectionHandler.cs
- TemplateAction.cs
- PathFigureCollectionConverter.cs
- TransformerTypeCollection.cs
- DelayedRegex.cs
- DataObjectFieldAttribute.cs
- ProxyGenerationError.cs
- MetaModel.cs
- ContentFileHelper.cs
- WebHeaderCollection.cs
- XMLSchema.cs
- webeventbuffer.cs
- BaseHashHelper.cs
- CTreeGenerator.cs
- AmbientValueAttribute.cs
- WindowsTokenRoleProvider.cs
- CommandLineParser.cs
- XmlSerializationWriter.cs
- EventLogPermissionAttribute.cs
- WindowsToolbarItemAsMenuItem.cs
- MenuItemCollection.cs
- figurelength.cs
- DataGridViewCellValueEventArgs.cs
- WrappedKeySecurityToken.cs
- CommentEmitter.cs
- AmbientLight.cs
- StartFileNameEditor.cs
- RegexCode.cs
- WebPart.cs
- COM2IDispatchConverter.cs
- QueryCacheManager.cs
- ToolBarPanel.cs
- TransactionException.cs
- ComplusEndpointConfigContainer.cs
- WpfPayload.cs
- AsymmetricCryptoHandle.cs
- AdornerHitTestResult.cs
- InternalBase.cs
- OdbcDataReader.cs
- MatrixAnimationUsingKeyFrames.cs
- SafeCoTaskMem.cs
- ObjectItemCollection.cs
- DataGridItemCollection.cs
- DbProviderFactory.cs
- ToolBarPanel.cs
- SimpleFieldTemplateFactory.cs
- Adorner.cs
- ColumnHeaderConverter.cs
- PathFigureCollection.cs
- CheckBox.cs
- MarkupExtensionReturnTypeAttribute.cs
- DbParameterCollectionHelper.cs
- LineServicesCallbacks.cs
- BamlMapTable.cs
- SessionSwitchEventArgs.cs
- JournalEntryStack.cs
- PeerTransportBindingElement.cs
- ISAPIWorkerRequest.cs
- ObjectCloneHelper.cs
- StringResourceManager.cs
- PhoneCallDesigner.cs
- TextTreeUndo.cs
- FastEncoderStatics.cs
- EntityPropertyMappingAttribute.cs
- ViewStateModeByIdAttribute.cs
- StrokeCollectionConverter.cs
- TrackingRecord.cs
- TableLayoutSettingsTypeConverter.cs
- BitmapCache.cs
- UdpDuplexChannel.cs
- MultiSelector.cs
- dbenumerator.cs
- EndpointDispatcher.cs
- Variant.cs
- NavigateEvent.cs
- GridViewAutomationPeer.cs
- ElementNotEnabledException.cs
- SecurityBindingElementImporter.cs
- TemporaryBitmapFile.cs
- Pointer.cs
- MultipleViewProviderWrapper.cs
- HtmlAnchor.cs
- DesignBinding.cs
- BeginGetFileNameFromUserRequest.cs
- WithStatement.cs
- ProcessProtocolHandler.cs
- SByte.cs
- MarkupWriter.cs
- StorageModelBuildProvider.cs
- CodeGenerator.cs
- DuplexSecurityProtocolFactory.cs
- VerificationAttribute.cs
- EmptyControlCollection.cs
- EventRecordWrittenEventArgs.cs