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
- RowBinding.cs
- HttpPostProtocolImporter.cs
- TlsnegoTokenProvider.cs
- Matrix3DConverter.cs
- GroupBox.cs
- PermissionSetEnumerator.cs
- SystemIPv4InterfaceProperties.cs
- Pair.cs
- EventlogProvider.cs
- LZCodec.cs
- Misc.cs
- TypeExtensionConverter.cs
- PropertyInfoSet.cs
- WebPartDescriptionCollection.cs
- MD5.cs
- TabControlEvent.cs
- XmlObjectSerializerWriteContextComplex.cs
- WebPartHelpVerb.cs
- TypedElement.cs
- PtsPage.cs
- ApplicationTrust.cs
- DbReferenceCollection.cs
- NameValuePermission.cs
- ObjectResult.cs
- CatalogZoneDesigner.cs
- ManualWorkflowSchedulerService.cs
- ConfigurationLocationCollection.cs
- DeviceFilterEditorDialog.cs
- BaseValidator.cs
- ResourcePermissionBaseEntry.cs
- CheckBoxList.cs
- ConditionCollection.cs
- PartialArray.cs
- TabletDeviceInfo.cs
- SessionParameter.cs
- CurrencyWrapper.cs
- CapabilitiesPattern.cs
- XamlBuildProvider.cs
- InlineCollection.cs
- DataIdProcessor.cs
- SplitContainer.cs
- HttpListenerResponse.cs
- AuthorizationSection.cs
- FileUpload.cs
- TrackingCondition.cs
- MenuCommand.cs
- TreeNodeSelectionProcessor.cs
- ConnectionPoolRegistry.cs
- Metafile.cs
- Function.cs
- DataGridViewDataConnection.cs
- IsolatedStorageFilePermission.cs
- EndEvent.cs
- OutputScopeManager.cs
- XPathNode.cs
- SingleObjectCollection.cs
- MarkupCompilePass2.cs
- PageRequestManager.cs
- TaskSchedulerException.cs
- ViewStateModeByIdAttribute.cs
- DataTableReader.cs
- NodeFunctions.cs
- WebPartZoneBase.cs
- UserUseLicenseDictionaryLoader.cs
- SynchronizedInputAdaptor.cs
- DataDocumentXPathNavigator.cs
- CodeArgumentReferenceExpression.cs
- Ray3DHitTestResult.cs
- PartialCachingAttribute.cs
- Material.cs
- MachineKeySection.cs
- X509Utils.cs
- CssClassPropertyAttribute.cs
- Semaphore.cs
- DataProtection.cs
- WindowsListBox.cs
- UIPermission.cs
- DrawingVisual.cs
- Profiler.cs
- DoubleLinkListEnumerator.cs
- DynamicField.cs
- PolicyException.cs
- _FtpControlStream.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlSchemaDocumentation.cs
- UserPreferenceChangingEventArgs.cs
- PostBackTrigger.cs
- VsPropertyGrid.cs
- ListBindingHelper.cs
- TableItemStyle.cs
- Stacktrace.cs
- TabControlEvent.cs
- Command.cs
- ClickablePoint.cs
- KeyValueConfigurationCollection.cs
- IncrementalCompileAnalyzer.cs
- SmtpReplyReaderFactory.cs
- SerialStream.cs
- Int32RectConverter.cs
- _OverlappedAsyncResult.cs