Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / SqlDataSourceQueryConverter.cs / 1 / SqlDataSourceQueryConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System.Design; using System.Diagnostics; using System.ComponentModel; using System.ComponentModel.Design; using System.Globalization; ////// Provides a type converter to convert query properties to a simple string. /// internal class SqlDataSourceQueryConverter : TypeConverter { ////// Converts the given value object to the specified destination type. /// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return SR.GetString(SR.SqlDataSourceQueryConverter_Text); } else { return base.ConvertTo(context, culture, value, destinationType); } } ////// Gets a collection of properties for the type of array specified by the value /// parameter using the specified context and attributes. /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return null; } ////// Gets a value indicating whether this object supports properties. /// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return false; } } } // 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
- DecoderFallbackWithFailureFlag.cs
- DateTimePicker.cs
- ProfileServiceManager.cs
- NullableDoubleMinMaxAggregationOperator.cs
- EventMappingSettings.cs
- AliasedSlot.cs
- EntityDescriptor.cs
- LabelLiteral.cs
- Form.cs
- DataViewSettingCollection.cs
- AssociatedControlConverter.cs
- NamespaceCollection.cs
- NegationPusher.cs
- DiscardableAttribute.cs
- PackUriHelper.cs
- TimeZone.cs
- SystemIPGlobalStatistics.cs
- FontFamily.cs
- ConnectionStringsExpressionEditor.cs
- TextTabProperties.cs
- ObjectStateManagerMetadata.cs
- CalloutQueueItem.cs
- SystemParameters.cs
- InputQueueChannel.cs
- XPathException.cs
- OracleCommand.cs
- Rijndael.cs
- TiffBitmapEncoder.cs
- HttpApplicationFactory.cs
- SqlDataSourceSelectingEventArgs.cs
- SessionStateModule.cs
- BaseParser.cs
- RegexCompiler.cs
- FormsAuthentication.cs
- ProvidersHelper.cs
- WebBrowserSiteBase.cs
- cookiecollection.cs
- UniqueSet.cs
- ClientSideQueueItem.cs
- StylusCaptureWithinProperty.cs
- FormViewRow.cs
- MSAANativeProvider.cs
- ResXBuildProvider.cs
- Polyline.cs
- DictionaryEntry.cs
- ServiceBehaviorElement.cs
- WebPartVerbsEventArgs.cs
- DoubleAnimationBase.cs
- PtsHelper.cs
- URLString.cs
- PointAnimationClockResource.cs
- DataGridViewCellValidatingEventArgs.cs
- UIElement3D.cs
- PolicyConversionContext.cs
- CodeComment.cs
- WebServicesSection.cs
- WebPartManagerInternals.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PropertyDescriptor.cs
- BaseParaClient.cs
- DataBindingHandlerAttribute.cs
- AuthStoreRoleProvider.cs
- RPIdentityRequirement.cs
- DataControlImageButton.cs
- Main.cs
- WpfSharedBamlSchemaContext.cs
- ClientSponsor.cs
- ServiceMemoryGates.cs
- NativeMethods.cs
- EarlyBoundInfo.cs
- DataGridViewAdvancedBorderStyle.cs
- InvokeHandlers.cs
- CompositeDataBoundControl.cs
- GridViewUpdatedEventArgs.cs
- EventsTab.cs
- InternalResources.cs
- FlagsAttribute.cs
- TranslateTransform.cs
- FormViewModeEventArgs.cs
- CatalogZone.cs
- ColumnCollection.cs
- ScheduleChanges.cs
- Object.cs
- EventItfInfo.cs
- XmlAggregates.cs
- SizeChangedInfo.cs
- KeyValueConfigurationCollection.cs
- CellLabel.cs
- LiteralTextContainerControlBuilder.cs
- ValueType.cs
- XmlLoader.cs
- AuthenticationException.cs
- PositiveTimeSpanValidatorAttribute.cs
- SystemUdpStatistics.cs
- KeyboardEventArgs.cs
- CorruptStoreException.cs
- TextServicesDisplayAttribute.cs
- StatusStrip.cs
- HandleExceptionArgs.cs
- LocalizationComments.cs