Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / DataRelationPropertyDescriptor.cs / 1 / DataRelationPropertyDescriptor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System.ComponentModel; ////// internal sealed class DataRelationPropertyDescriptor : PropertyDescriptor { DataRelation relation; internal DataRelation Relation { get { return relation; } } internal DataRelationPropertyDescriptor(DataRelation dataRelation) : base(dataRelation.RelationName, null) { this.relation = dataRelation; } public override Type ComponentType { get { return typeof(DataRowView); } } public override bool IsReadOnly { get { return false; } } public override Type PropertyType { get { return typeof(IBindingList); } } public override bool Equals(object other) { if (other is DataRelationPropertyDescriptor) { DataRelationPropertyDescriptor descriptor = (DataRelationPropertyDescriptor) other; return(descriptor.Relation == Relation); } return false; } public override Int32 GetHashCode() { return Relation.GetHashCode(); } public override bool CanResetValue(object component) { return false; } public override object GetValue(object component) { DataRowView dataRowView = (DataRowView) component; return dataRowView.CreateChildView(relation); } public override void ResetValue(object component) { } public override void SetValue(object component, object value) { } public override bool ShouldSerializeValue(object component) { return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputPassword.cs
- Quaternion.cs
- Matrix.cs
- UInt16Storage.cs
- StringHandle.cs
- StringExpressionSet.cs
- GregorianCalendarHelper.cs
- CompilationSection.cs
- Label.cs
- ZoomPercentageConverter.cs
- PropertyIDSet.cs
- DbConnectionPool.cs
- ClosableStream.cs
- Identity.cs
- RegexCompiler.cs
- EditorZoneAutoFormat.cs
- SessionStateItemCollection.cs
- QuotedStringWriteStateInfo.cs
- SubMenuStyleCollection.cs
- XmlDomTextWriter.cs
- EventProvider.cs
- DetailsViewCommandEventArgs.cs
- brushes.cs
- ListView.cs
- UnionExpr.cs
- DemultiplexingClientMessageFormatter.cs
- NativeMethods.cs
- CodeDirectionExpression.cs
- Trace.cs
- SspiWrapper.cs
- XamlRtfConverter.cs
- SurrogateSelector.cs
- SqlXmlStorage.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ComponentCommands.cs
- SoapFormatter.cs
- CustomPopupPlacement.cs
- TypeListConverter.cs
- GraphicsPathIterator.cs
- WindowsTooltip.cs
- StylusPointDescription.cs
- CatchDesigner.xaml.cs
- XPathDocumentIterator.cs
- RegexGroupCollection.cs
- RequestContext.cs
- QilDataSource.cs
- MessageSecurityTokenVersion.cs
- SoapReflectionImporter.cs
- PanelDesigner.cs
- SecurityHeaderLayout.cs
- Row.cs
- FormCollection.cs
- TableLayoutSettings.cs
- GeneralTransform3DGroup.cs
- DrawingImage.cs
- UseLicense.cs
- DependencySource.cs
- DynamicQueryableWrapper.cs
- BitmapEffect.cs
- XmlSchemaAll.cs
- Panel.cs
- DataDocumentXPathNavigator.cs
- DebugTracing.cs
- PointConverter.cs
- CfgRule.cs
- Crypto.cs
- CanonicalFormWriter.cs
- ComponentSerializationService.cs
- TextTreeInsertUndoUnit.cs
- CallbackDebugBehavior.cs
- HtmlTableCellCollection.cs
- ChannelServices.cs
- Bidi.cs
- DoubleStorage.cs
- PropertyDescriptorCollection.cs
- MembershipValidatePasswordEventArgs.cs
- InvalidDataException.cs
- ByteBufferPool.cs
- InternalBase.cs
- WebPartConnectionsConnectVerb.cs
- TextEffect.cs
- LoadRetryConstantStrategy.cs
- ExtendedProperty.cs
- InternalCache.cs
- SchemaElementDecl.cs
- Underline.cs
- SQLBinaryStorage.cs
- StylusDevice.cs
- Stroke.cs
- VisualStates.cs
- BrushConverter.cs
- MappingItemCollection.cs
- _ContextAwareResult.cs
- BeginEvent.cs
- ConfigurationCollectionAttribute.cs
- ScriptControlDescriptor.cs
- LocatorManager.cs
- WorkflowServiceAttributesTypeConverter.cs
- View.cs
- ScriptingAuthenticationServiceSection.cs