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
- ServiceNotStartedException.cs
- ScriptingJsonSerializationSection.cs
- XmlSchemaInferenceException.cs
- EntityDataSourceValidationException.cs
- SqlDependency.cs
- UnsafeNetInfoNativeMethods.cs
- DbException.cs
- FileRecordSequenceHelper.cs
- DateTimeConstantAttribute.cs
- LostFocusEventManager.cs
- ToolboxItemFilterAttribute.cs
- DocumentGrid.cs
- TypeExtension.cs
- ValueType.cs
- PageCatalogPart.cs
- WsdlBuildProvider.cs
- CounterSampleCalculator.cs
- SamlAuthenticationStatement.cs
- PassportIdentity.cs
- XmlLanguage.cs
- WorkflowRuntimeServiceElement.cs
- TemplateContainer.cs
- DiscoveryClientReferences.cs
- Parsers.cs
- ReceiveMessageContent.cs
- SqlRowUpdatedEvent.cs
- _AuthenticationState.cs
- PlanCompiler.cs
- ViewSimplifier.cs
- IndentTextWriter.cs
- XPathNodePointer.cs
- TypeConverterAttribute.cs
- DrawingAttributes.cs
- ImageDrawing.cs
- MouseGestureConverter.cs
- WmlCommandAdapter.cs
- CacheEntry.cs
- Array.cs
- NaturalLanguageHyphenator.cs
- HttpApplicationFactory.cs
- SHA256CryptoServiceProvider.cs
- ClientBuildManagerCallback.cs
- ServicePointManager.cs
- TextTreeNode.cs
- InstanceOwnerQueryResult.cs
- ConfigXmlElement.cs
- DefaultPropertyAttribute.cs
- ProxyWebPartManager.cs
- DataGridViewCellMouseEventArgs.cs
- CodeCatchClauseCollection.cs
- Filter.cs
- DatePicker.cs
- ListViewDataItem.cs
- TypePropertyEditor.cs
- HttpChannelHelpers.cs
- Freezable.cs
- AttributeConverter.cs
- nulltextcontainer.cs
- CheckBoxFlatAdapter.cs
- XXXInfos.cs
- JournalEntryStack.cs
- XmlSortKeyAccumulator.cs
- FunctionCommandText.cs
- TextDecorationCollectionConverter.cs
- RegexRunner.cs
- AnnotationComponentChooser.cs
- AttributeExtensions.cs
- ZipIOExtraFieldPaddingElement.cs
- TemplatingOptionsDialog.cs
- DataPagerFieldCollection.cs
- CLRBindingWorker.cs
- EntityViewGenerationConstants.cs
- FixedDocumentSequencePaginator.cs
- InputBuffer.cs
- MediaTimeline.cs
- FlowPosition.cs
- XPathChildIterator.cs
- TableRow.cs
- PersonalizationStateQuery.cs
- TextRangeEdit.cs
- LinqDataSourceStatusEventArgs.cs
- TreeNodeEventArgs.cs
- WindowsAuthenticationEventArgs.cs
- TypeConverterHelper.cs
- _NestedMultipleAsyncResult.cs
- SystemIcmpV4Statistics.cs
- MemoryMappedView.cs
- ToolStripDropDownClosingEventArgs.cs
- PropertyChangedEventManager.cs
- TypeToken.cs
- SqlBooleanizer.cs
- AssertSection.cs
- WindowsEditBoxRange.cs
- CodeSubDirectoriesCollection.cs
- TranslateTransform3D.cs
- Graphics.cs
- KeySpline.cs
- DataGridViewCellStyle.cs
- TdsParserStateObject.cs
- PopupRootAutomationPeer.cs