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
- ManualResetEventSlim.cs
- RecommendedAsConfigurableAttribute.cs
- TableParaClient.cs
- SecureUICommand.cs
- UserControlCodeDomTreeGenerator.cs
- RequestBringIntoViewEventArgs.cs
- CustomSignedXml.cs
- SkewTransform.cs
- DataGridTextBox.cs
- TemplateBamlRecordReader.cs
- OletxResourceManager.cs
- ServicesUtilities.cs
- PropertyKey.cs
- TreeNodeEventArgs.cs
- ListControl.cs
- VideoDrawing.cs
- TypeUsage.cs
- XmlSchemaValidationException.cs
- DirectoryObjectSecurity.cs
- PropertyMapper.cs
- ConfigurationProperty.cs
- CodeNamespaceCollection.cs
- DbConnectionOptions.cs
- DataGridCellEditEndingEventArgs.cs
- ArraySubsetEnumerator.cs
- DebuggerAttributes.cs
- DataServiceQueryProvider.cs
- FormView.cs
- FormViewPagerRow.cs
- HttpResponseInternalWrapper.cs
- WindowsListViewSubItem.cs
- FixedTextBuilder.cs
- BooleanSwitch.cs
- SectionUpdates.cs
- SerialStream.cs
- RelatedEnd.cs
- RetrieveVirtualItemEventArgs.cs
- InternalMappingException.cs
- XmlHelper.cs
- RootNamespaceAttribute.cs
- CompilerScopeManager.cs
- OdbcCommandBuilder.cs
- FontTypeConverter.cs
- RichTextBoxContextMenu.cs
- DataServiceResponse.cs
- ResourceDescriptionAttribute.cs
- EntityExpressionVisitor.cs
- XPathConvert.cs
- WpfSharedXamlSchemaContext.cs
- ProfileService.cs
- Rijndael.cs
- XmlSchemaImport.cs
- XmlBufferReader.cs
- RegexCharClass.cs
- PropertyGridView.cs
- TraceUtility.cs
- MappingItemCollection.cs
- XappLauncher.cs
- ConfigXmlCDataSection.cs
- shaper.cs
- RelOps.cs
- Context.cs
- SourceItem.cs
- NonBatchDirectoryCompiler.cs
- HttpListenerException.cs
- GridView.cs
- UIntPtr.cs
- HashRepartitionStream.cs
- EdmPropertyAttribute.cs
- bidPrivateBase.cs
- RuntimeArgumentHandle.cs
- Point3DCollection.cs
- InlineCollection.cs
- SettingsPropertyCollection.cs
- XmlName.cs
- EmptyEnumerator.cs
- ParsedAttributeCollection.cs
- BitmapCodecInfoInternal.cs
- GeneralTransform.cs
- RectAnimationClockResource.cs
- RelationshipConverter.cs
- IPHostEntry.cs
- DataGridViewLayoutData.cs
- AnimationStorage.cs
- _DigestClient.cs
- BaseComponentEditor.cs
- ISAPIApplicationHost.cs
- NamespaceCollection.cs
- DropShadowEffect.cs
- _RequestLifetimeSetter.cs
- HttpListenerPrefixCollection.cs
- AnyReturnReader.cs
- ResourceReferenceExpressionConverter.cs
- TemplateField.cs
- ExceptionRoutedEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- ToolZoneDesigner.cs
- ByteAnimationBase.cs
- GridLengthConverter.cs
- RadialGradientBrush.cs