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
- WindowsAltTab.cs
- PropertyMappingExceptionEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- CriticalFileToken.cs
- PermissionSet.cs
- ExpandCollapsePattern.cs
- EntityDataSourceWrapperCollection.cs
- TextPatternIdentifiers.cs
- SQLConvert.cs
- CreateUserWizard.cs
- Int16Animation.cs
- ComponentResourceManager.cs
- EntityDescriptor.cs
- ExceptionRoutedEventArgs.cs
- RadioButtonAutomationPeer.cs
- HttpRuntimeSection.cs
- AssemblyResolver.cs
- TextServicesProperty.cs
- ServiceDocument.cs
- DateTimeOffsetStorage.cs
- Simplifier.cs
- RightsManagementSuppressedStream.cs
- WebEventCodes.cs
- __Filters.cs
- FixedTextPointer.cs
- XmlStringTable.cs
- FileReader.cs
- ToolStripTemplateNode.cs
- WeakReference.cs
- AffineTransform3D.cs
- UserNameSecurityTokenProvider.cs
- EventItfInfo.cs
- ChtmlCommandAdapter.cs
- PeerChannelFactory.cs
- FlagsAttribute.cs
- MessageBuilder.cs
- TimeoutValidationAttribute.cs
- XamlFrame.cs
- DataGridViewSelectedRowCollection.cs
- XPathNavigatorKeyComparer.cs
- VectorCollectionConverter.cs
- Splitter.cs
- PersianCalendar.cs
- AnimatedTypeHelpers.cs
- ServiceDescription.cs
- JsonEnumDataContract.cs
- InputLanguage.cs
- FunctionDetailsReader.cs
- SafeRightsManagementQueryHandle.cs
- Application.cs
- HeaderedItemsControl.cs
- XamlFilter.cs
- TextBoxAutoCompleteSourceConverter.cs
- SerialPort.cs
- EncoderBestFitFallback.cs
- CSharpCodeProvider.cs
- HtmlLink.cs
- XXXInfos.cs
- ConfigurationValidatorAttribute.cs
- SRDisplayNameAttribute.cs
- MailMessageEventArgs.cs
- XmlSchema.cs
- SmtpReplyReader.cs
- RefreshPropertiesAttribute.cs
- ControlAdapter.cs
- DesignerCommandSet.cs
- TemplateModeChangedEventArgs.cs
- RegularExpressionValidator.cs
- TemplateApplicationHelper.cs
- PropertyEntry.cs
- StringPropertyBuilder.cs
- SiteIdentityPermission.cs
- HashCodeCombiner.cs
- IntegrationExceptionEventArgs.cs
- tabpagecollectioneditor.cs
- path.cs
- _AuthenticationState.cs
- StorageEndPropertyMapping.cs
- BooleanConverter.cs
- BaseResourcesBuildProvider.cs
- SingleTagSectionHandler.cs
- XmlObjectSerializerWriteContext.cs
- Rect.cs
- Int32Animation.cs
- XmlTextAttribute.cs
- DataTableExtensions.cs
- OleDbEnumerator.cs
- ThousandthOfEmRealPoints.cs
- CodeCatchClause.cs
- ArrayList.cs
- LineServicesRun.cs
- WorkflowTransactionService.cs
- ResXResourceReader.cs
- StaticResourceExtension.cs
- ErrorStyle.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- DataListItem.cs
- CustomErrorCollection.cs
- ModelFunctionTypeElement.cs
- ProtectedConfigurationSection.cs