Code:
/ DotNET / DotNET / 8.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
- SelectionHighlightInfo.cs
- FieldNameLookup.cs
- DbSourceParameterCollection.cs
- FontFamilyIdentifier.cs
- odbcmetadatacollectionnames.cs
- GraphicsState.cs
- ComponentEditorForm.cs
- HttpResponse.cs
- EntityDataSourceContextCreatedEventArgs.cs
- EpmAttributeNameBuilder.cs
- EventHandlerList.cs
- _LoggingObject.cs
- LabelDesigner.cs
- EdmFunction.cs
- TagMapInfo.cs
- SecurityPolicySection.cs
- SqlOuterApplyReducer.cs
- MailSettingsSection.cs
- ExtractorMetadata.cs
- WmpBitmapDecoder.cs
- CacheMemory.cs
- Parameter.cs
- Int64Animation.cs
- MetaDataInfo.cs
- SelectedGridItemChangedEvent.cs
- MessageQueuePermissionEntryCollection.cs
- TabControlEvent.cs
- SecUtil.cs
- CommandID.cs
- TypeBuilder.cs
- Mapping.cs
- SystemIPInterfaceStatistics.cs
- CredentialCache.cs
- Model3DGroup.cs
- BrowserCapabilitiesFactory.cs
- FlowchartDesigner.xaml.cs
- MissingFieldException.cs
- TextServicesCompartmentContext.cs
- EmbeddedMailObjectsCollection.cs
- Preprocessor.cs
- DataGridRowClipboardEventArgs.cs
- DbException.cs
- LinqDataSourceInsertEventArgs.cs
- HttpHandlersSection.cs
- RoutedUICommand.cs
- DataBoundControlAdapter.cs
- InputLanguageCollection.cs
- ExtensionSimplifierMarkupObject.cs
- Condition.cs
- TextRangeEditTables.cs
- WebService.cs
- TemplateBindingExpression.cs
- SizeIndependentAnimationStorage.cs
- SizeKeyFrameCollection.cs
- ImageCollectionCodeDomSerializer.cs
- ProcessHostMapPath.cs
- ColorConvertedBitmap.cs
- StrokeNodeData.cs
- BamlCollectionHolder.cs
- DataGridViewHeaderCell.cs
- GroupBoxRenderer.cs
- Rule.cs
- SpeechDetectedEventArgs.cs
- StateChangeEvent.cs
- RightsManagementEncryptionTransform.cs
- ImpersonateTokenRef.cs
- X509CertificateStore.cs
- SharedPerformanceCounter.cs
- LiteralLink.cs
- ElementHostPropertyMap.cs
- AgileSafeNativeMemoryHandle.cs
- MessageQueueInstaller.cs
- OutOfMemoryException.cs
- StrokeCollection.cs
- ResXDataNode.cs
- FieldAccessException.cs
- XmlAttributeOverrides.cs
- WebChannelFactory.cs
- TreeViewHitTestInfo.cs
- MultipartIdentifier.cs
- ImageProxy.cs
- RuleValidation.cs
- TextFormatterImp.cs
- TextRange.cs
- Solver.cs
- ExpressionVisitor.cs
- MethodImplAttribute.cs
- CmsUtils.cs
- PermissionListSet.cs
- PresentationAppDomainManager.cs
- InstancePersistence.cs
- AttributeParameterInfo.cs
- SharedStatics.cs
- CultureMapper.cs
- tibetanshape.cs
- Pair.cs
- JoinSymbol.cs
- AxisAngleRotation3D.cs
- PageAdapter.cs
- DocumentApplicationJournalEntry.cs