Code:
/ FX-1434 / FX-1434 / 1.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
- SelectionListComponentEditor.cs
- FixedTextSelectionProcessor.cs
- TextRangeEditLists.cs
- ForeignKeyConstraint.cs
- SingleObjectCollection.cs
- WebPartAddingEventArgs.cs
- DataGridColumnCollection.cs
- ObjectFullSpanRewriter.cs
- dtdvalidator.cs
- UITypeEditors.cs
- IDQuery.cs
- CodeDesigner.cs
- TreeNodeEventArgs.cs
- ViewBox.cs
- BitmapDownload.cs
- ColorDialog.cs
- BezierSegment.cs
- TabControlCancelEvent.cs
- StructuredTypeEmitter.cs
- OdbcRowUpdatingEvent.cs
- ConnectionStringSettings.cs
- StreamHelper.cs
- SqlBulkCopyColumnMapping.cs
- XmlUtf8RawTextWriter.cs
- PrivilegedConfigurationManager.cs
- DiscoveryInnerClientAdhoc11.cs
- DataStreams.cs
- ColumnCollection.cs
- HashAlgorithm.cs
- ComponentRenameEvent.cs
- ApplicationManager.cs
- OdbcEnvironment.cs
- OleDbException.cs
- ComponentChangingEvent.cs
- InspectionWorker.cs
- Clipboard.cs
- XmlDataImplementation.cs
- TransactionScope.cs
- MemberExpression.cs
- ControlCommandSet.cs
- UriSection.cs
- FixUpCollection.cs
- DeclaredTypeValidator.cs
- NewArrayExpression.cs
- DataControlPagerLinkButton.cs
- PointValueSerializer.cs
- KerberosReceiverSecurityToken.cs
- Floater.cs
- GeometryCollection.cs
- DataGridTextBoxColumn.cs
- ActivatableWorkflowsQueryResult.cs
- PagedDataSource.cs
- ScriptIgnoreAttribute.cs
- RadioButtonAutomationPeer.cs
- SessionIDManager.cs
- SequenceFullException.cs
- assemblycache.cs
- CompilerErrorCollection.cs
- SinglePageViewer.cs
- X509Certificate.cs
- AvTrace.cs
- ThumbAutomationPeer.cs
- Tokenizer.cs
- UnionCqlBlock.cs
- DBConnectionString.cs
- ProfileModule.cs
- ClientScriptManagerWrapper.cs
- CommonRemoteMemoryBlock.cs
- HtmlEncodedRawTextWriter.cs
- PointUtil.cs
- CoordinationService.cs
- CodeSubDirectoriesCollection.cs
- DataGridSortCommandEventArgs.cs
- InstanceValue.cs
- MethodBody.cs
- MissingMemberException.cs
- QueryFunctions.cs
- BuildProvidersCompiler.cs
- SurrogateSelector.cs
- StaticTextPointer.cs
- PropertyEntry.cs
- MinimizableAttributeTypeConverter.cs
- XmlStreamStore.cs
- VectorValueSerializer.cs
- Sequence.cs
- TimerElapsedEvenArgs.cs
- Rfc2898DeriveBytes.cs
- ThousandthOfEmRealPoints.cs
- XmlSchemaCompilationSettings.cs
- MsmqIntegrationMessagePool.cs
- CompositeFontFamily.cs
- ScriptingSectionGroup.cs
- MenuItemBinding.cs
- TransactionChannelFactory.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlSchemaComplexContentRestriction.cs
- HtmlTableCell.cs
- UpdateManifestForBrowserApplication.cs
- GeometryGroup.cs
- AnnotationStore.cs