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
- SqlFunctionAttribute.cs
- DispatcherSynchronizationContext.cs
- XmlBufferReader.cs
- Ray3DHitTestResult.cs
- _SslStream.cs
- ScrollProperties.cs
- Matrix.cs
- XmlBinaryWriter.cs
- BrushConverter.cs
- HwndSourceParameters.cs
- DbBuffer.cs
- VisualStyleRenderer.cs
- AccessDataSource.cs
- MissingFieldException.cs
- FlowDocumentPaginator.cs
- InfoCardBinaryReader.cs
- XmlDownloadManager.cs
- WinFormsSpinner.cs
- TabControl.cs
- BufferedConnection.cs
- EntityDesignerDataSourceView.cs
- WmlControlAdapter.cs
- SrgsElementFactoryCompiler.cs
- TraceContextEventArgs.cs
- EmptyControlCollection.cs
- XhtmlBasicPageAdapter.cs
- RadioButtonPopupAdapter.cs
- SplashScreenNativeMethods.cs
- KeyedHashAlgorithm.cs
- DbModificationClause.cs
- PointConverter.cs
- AbstractDataSvcMapFileLoader.cs
- ReadingWritingEntityEventArgs.cs
- DataRowChangeEvent.cs
- GeometryHitTestResult.cs
- Thread.cs
- LoginCancelEventArgs.cs
- ManagedWndProcTracker.cs
- PeerToPeerException.cs
- oledbmetadatacollectionnames.cs
- ObfuscationAttribute.cs
- FileLoadException.cs
- Stackframe.cs
- SpanIndex.cs
- HttpProfileBase.cs
- InstanceBehavior.cs
- Propagator.JoinPropagator.cs
- XPathBinder.cs
- CompiledIdentityConstraint.cs
- TextSearch.cs
- ClientSideProviderDescription.cs
- XmlSerializableReader.cs
- FormatterServices.cs
- SchemaDeclBase.cs
- OleDbError.cs
- PriorityItem.cs
- TextRunProperties.cs
- ScriptReference.cs
- TransformerInfo.cs
- DiagnosticTrace.cs
- SharedPersonalizationStateInfo.cs
- Transform3DGroup.cs
- WmfPlaceableFileHeader.cs
- OleDbCommand.cs
- Component.cs
- Encoding.cs
- XamlRtfConverter.cs
- MultiTrigger.cs
- StylusLogic.cs
- BamlResourceSerializer.cs
- HostingEnvironmentWrapper.cs
- GifBitmapDecoder.cs
- ObjectConverter.cs
- ImmutableObjectAttribute.cs
- CustomCategoryAttribute.cs
- Perspective.cs
- MultiView.cs
- TypeElement.cs
- RectangleHotSpot.cs
- ToolStripButton.cs
- MarkupExtensionParser.cs
- ToolStrip.cs
- ScaleTransform.cs
- TrackingExtract.cs
- ColumnTypeConverter.cs
- DataServiceConfiguration.cs
- KernelTypeValidation.cs
- ProjectionQueryOptionExpression.cs
- MappingException.cs
- BoundField.cs
- DbDataRecord.cs
- MethodCallConverter.cs
- ManualWorkflowSchedulerService.cs
- WebPartCollection.cs
- ModuleBuilderData.cs
- MimeObjectFactory.cs
- HwndSourceParameters.cs
- UrlAuthorizationModule.cs
- AgileSafeNativeMemoryHandle.cs
- RealProxy.cs