Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / XmlDocumentFieldSchema.cs / 1 / XmlDocumentFieldSchema.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System.Collections; using System.Diagnostics; using System.Xml; using System.Xml.XPath; ////// A class to expose hierarchical schema from an XmlDocument object. /// This is used by data source designers to enable data-bound to /// traverse their schema at design time. /// internal sealed class XmlDocumentFieldSchema : IDataSourceFieldSchema { private string _name; public XmlDocumentFieldSchema(string name) { Debug.Assert(name != null && name.Length > 0); _name = name; } public Type DataType { get { return typeof(string); } } public bool Identity { get { return false; } } public bool IsReadOnly { get { return false; } } public bool IsUnique { get { return false; } } public int Length { get { return -1; } } public string Name { get { return _name; } } public bool Nullable { get { return true; } } public int Precision { get { return -1; } } public bool PrimaryKey { get { return false; } } public int Scale { get { return -1; } } } } // 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
- AspNetSynchronizationContext.cs
- GridViewDeletedEventArgs.cs
- WebPartRestoreVerb.cs
- InlinedAggregationOperatorEnumerator.cs
- HideDisabledControlAdapter.cs
- grammarelement.cs
- EnumerableRowCollection.cs
- SendingRequestEventArgs.cs
- IISUnsafeMethods.cs
- SecurityContextSecurityTokenAuthenticator.cs
- ProxyWebPartConnectionCollection.cs
- XmlElement.cs
- FormViewDeleteEventArgs.cs
- DataSetUtil.cs
- DataGrid.cs
- AsnEncodedData.cs
- UrlMappingsSection.cs
- XamlVector3DCollectionSerializer.cs
- LazyTextWriterCreator.cs
- ACE.cs
- MiniParameterInfo.cs
- InfoCardKeyedHashAlgorithm.cs
- ArrayElementGridEntry.cs
- SqlDataSource.cs
- LoadedEvent.cs
- Brush.cs
- IdnMapping.cs
- AesManaged.cs
- ContextProperty.cs
- ThreadPoolTaskScheduler.cs
- ComEventsSink.cs
- MoveSizeWinEventHandler.cs
- MemberInfoSerializationHolder.cs
- WebRequestModulesSection.cs
- EncodingInfo.cs
- WarningException.cs
- SafeFileHandle.cs
- PolicyException.cs
- DocumentViewer.cs
- RegistrationServices.cs
- WebResourceAttribute.cs
- IntersectQueryOperator.cs
- ByteAnimation.cs
- FeedUtils.cs
- CodeDelegateCreateExpression.cs
- TreeNodeCollectionEditor.cs
- Message.cs
- PersistenceTypeAttribute.cs
- DmlSqlGenerator.cs
- NullableBoolConverter.cs
- EdmRelationshipRoleAttribute.cs
- StrongName.cs
- mediapermission.cs
- Viewport3DAutomationPeer.cs
- StrokeCollectionDefaultValueFactory.cs
- FilterEventArgs.cs
- XmlSchemaComplexType.cs
- SqlDataSourceCache.cs
- ActiveXSite.cs
- CompletionCallbackWrapper.cs
- PathFigureCollection.cs
- DataGridLinkButton.cs
- UInt32Storage.cs
- ColumnResizeUndoUnit.cs
- DataGridViewCellCollection.cs
- XamlTemplateSerializer.cs
- BaseHashHelper.cs
- SpellerInterop.cs
- SqlUserDefinedAggregateAttribute.cs
- ReadWriteSpinLock.cs
- SqlUtils.cs
- SettingsBase.cs
- StretchValidation.cs
- ThreadExceptionDialog.cs
- rsa.cs
- RemoteWebConfigurationHost.cs
- FormatterConverter.cs
- KeyPressEvent.cs
- FixedSOMLineRanges.cs
- PolyLineSegment.cs
- IndicShape.cs
- XmlBaseReader.cs
- Maps.cs
- PeerDuplexChannelListener.cs
- DataGridToolTip.cs
- FixedSOMLineCollection.cs
- CompositeDataBoundControl.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- SqlDataReader.cs
- SafeNativeMethods.cs
- DataBoundControlParameterTarget.cs
- KeyboardNavigation.cs
- ScopeElementCollection.cs
- TemplateColumn.cs
- AsyncResult.cs
- DependencyObjectType.cs
- BindingExpression.cs
- OptimizerPatterns.cs
- SafeIUnknown.cs
- Expr.cs