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
- KnownTypeAttribute.cs
- IBuiltInEvidence.cs
- StyleXamlParser.cs
- coordinator.cs
- ExpandCollapsePattern.cs
- XmlWellformedWriter.cs
- HttpHandlerActionCollection.cs
- LocalizableResourceBuilder.cs
- DesignerLoader.cs
- CharacterBufferReference.cs
- DataGridViewRowsAddedEventArgs.cs
- DetailsViewInsertedEventArgs.cs
- ObjectConverter.cs
- TimelineClockCollection.cs
- IndexerNameAttribute.cs
- XmlAttributeProperties.cs
- GlyphInfoList.cs
- UIPermission.cs
- ScopedKnownTypes.cs
- ReferenceEqualityComparer.cs
- cookiecontainer.cs
- SqlClientPermission.cs
- XmlEventCache.cs
- DataBoundControl.cs
- ListViewDataItem.cs
- DatePicker.cs
- AxisAngleRotation3D.cs
- PermissionSetTriple.cs
- DataGridViewHitTestInfo.cs
- IOException.cs
- UnsafeNativeMethods.cs
- ShapeTypeface.cs
- Brush.cs
- PropertiesTab.cs
- DecimalMinMaxAggregationOperator.cs
- Journaling.cs
- CellNormalizer.cs
- MetabaseReader.cs
- CalendarAutoFormatDialog.cs
- HostingEnvironmentSection.cs
- SelectionHighlightInfo.cs
- FrugalMap.cs
- ProcessInfo.cs
- TypeBuilder.cs
- SymbolType.cs
- JsonReaderDelegator.cs
- SamlSubject.cs
- IPipelineRuntime.cs
- OpacityConverter.cs
- MetadataItem_Static.cs
- CodeDirectionExpression.cs
- ValueQuery.cs
- Root.cs
- FontDifferentiator.cs
- ProfileModule.cs
- MetadataPropertyCollection.cs
- OutputWindow.cs
- OrderedDictionaryStateHelper.cs
- TabControlAutomationPeer.cs
- XmlBoundElement.cs
- TypedReference.cs
- IBuiltInEvidence.cs
- AsyncResult.cs
- SynchronizedInputProviderWrapper.cs
- StylusOverProperty.cs
- RectIndependentAnimationStorage.cs
- AlternateView.cs
- SqlResolver.cs
- ActivationServices.cs
- RotateTransform3D.cs
- RequiredAttributeAttribute.cs
- UnionExpr.cs
- BehaviorEditorPart.cs
- HttpCapabilitiesEvaluator.cs
- RowBinding.cs
- LogStore.cs
- _StreamFramer.cs
- TextRangeAdaptor.cs
- SqlColumnizer.cs
- SearchExpression.cs
- ConfigXmlText.cs
- StagingAreaInputItem.cs
- TraceUtility.cs
- WebRequest.cs
- LoginUtil.cs
- DataGridViewSelectedRowCollection.cs
- COAUTHIDENTITY.cs
- FixedSOMLineRanges.cs
- SoapFault.cs
- HttpInputStream.cs
- SystemIcons.cs
- SoapMessage.cs
- SafeCoTaskMem.cs
- Int32EqualityComparer.cs
- NativeMethods.cs
- XmlWriterSettings.cs
- SimpleFieldTemplateFactory.cs
- RootBuilder.cs
- EncodingNLS.cs
- GradientStop.cs