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
- ButtonFieldBase.cs
- DynamicObject.cs
- RowsCopiedEventArgs.cs
- WebConvert.cs
- FormViewDeleteEventArgs.cs
- XPSSignatureDefinition.cs
- ImageConverter.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DetailsViewUpdateEventArgs.cs
- DbResourceAllocator.cs
- SHA1Managed.cs
- CategoryValueConverter.cs
- PopupRoot.cs
- MultiByteCodec.cs
- QuaternionRotation3D.cs
- Configuration.cs
- ConfigurationLocation.cs
- Encoding.cs
- ByteAnimationUsingKeyFrames.cs
- SymLanguageType.cs
- WebDisplayNameAttribute.cs
- Pointer.cs
- CacheVirtualItemsEvent.cs
- LinqDataSourceStatusEventArgs.cs
- SplashScreenNativeMethods.cs
- FileLevelControlBuilderAttribute.cs
- DataGridViewComboBoxColumn.cs
- DataBindingValueUIHandler.cs
- ElementProxy.cs
- FastPropertyAccessor.cs
- DockPattern.cs
- OrderingInfo.cs
- CopyAction.cs
- ErrorFormatter.cs
- ObjectViewEntityCollectionData.cs
- TextureBrush.cs
- StatusStrip.cs
- MergeLocalizationDirectives.cs
- HtmlTableCellCollection.cs
- SelectionRangeConverter.cs
- ArithmeticException.cs
- BamlLocalizer.cs
- DetailsView.cs
- ICollection.cs
- BindingMemberInfo.cs
- SymmetricSecurityProtocolFactory.cs
- PartManifestEntry.cs
- KerberosSecurityTokenAuthenticator.cs
- SdlChannelSink.cs
- HtmlInputRadioButton.cs
- CollectionEditor.cs
- ProvidersHelper.cs
- TemplateKeyConverter.cs
- ObjectListTitleAttribute.cs
- Application.cs
- MetadataCache.cs
- LineGeometry.cs
- JavaScriptString.cs
- DataList.cs
- UrlMappingCollection.cs
- BasicAsyncResult.cs
- CssStyleCollection.cs
- MessagePropertyFilter.cs
- DataListItemEventArgs.cs
- OSEnvironmentHelper.cs
- GeometryDrawing.cs
- Rotation3DAnimationBase.cs
- LogAppendAsyncResult.cs
- TypeLoadException.cs
- QuotedStringWriteStateInfo.cs
- TemplatedWizardStep.cs
- SettingsPropertyValue.cs
- Pts.cs
- FixedTextContainer.cs
- AdCreatedEventArgs.cs
- IconConverter.cs
- X509SecurityToken.cs
- StickyNoteContentControl.cs
- ReceiveCompletedEventArgs.cs
- DesignTimeTemplateParser.cs
- HwndKeyboardInputProvider.cs
- ObfuscationAttribute.cs
- PathGeometry.cs
- TextTreeText.cs
- counter.cs
- ConnectionProviderAttribute.cs
- FixedDocument.cs
- SecurityContextSecurityTokenResolver.cs
- KeyGestureValueSerializer.cs
- DocumentGridPage.cs
- SQLMoney.cs
- CngAlgorithm.cs
- Rotation3DAnimationBase.cs
- GenerateScriptTypeAttribute.cs
- BuildManagerHost.cs
- WindowsFormsSynchronizationContext.cs
- NotFiniteNumberException.cs
- ResXResourceSet.cs
- ServiceContractGenerationContext.cs
- Decimal.cs