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
- TextDecoration.cs
- FrameAutomationPeer.cs
- SpeechSeg.cs
- SQLDateTimeStorage.cs
- RedirectionProxy.cs
- SelectionItemProviderWrapper.cs
- GridViewEditEventArgs.cs
- RunInstallerAttribute.cs
- VariableAction.cs
- RepeaterCommandEventArgs.cs
- SplitterPanel.cs
- ActiveXHost.cs
- QueryMatcher.cs
- InvokeProviderWrapper.cs
- BackStopAuthenticationModule.cs
- OLEDB_Util.cs
- CustomAttributeBuilder.cs
- CodeSnippetTypeMember.cs
- AdRotatorDesigner.cs
- XmlSchemaImport.cs
- RunWorkerCompletedEventArgs.cs
- _FtpDataStream.cs
- ControlIdConverter.cs
- WorkflowExecutor.cs
- XamlGridLengthSerializer.cs
- EventSinkActivity.cs
- DetailsViewModeEventArgs.cs
- IItemProperties.cs
- OdbcException.cs
- StatusBarPanel.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- NativeWindow.cs
- UrlUtility.cs
- ErrorView.xaml.cs
- StrongNameHelpers.cs
- OutputCacheModule.cs
- WmlObjectListAdapter.cs
- SmtpReplyReaderFactory.cs
- ValueType.cs
- CFStream.cs
- SystemIPGlobalProperties.cs
- GZipStream.cs
- MobileCapabilities.cs
- SchemaImporter.cs
- IgnoreSectionHandler.cs
- TitleStyle.cs
- IdentityNotMappedException.cs
- ParsedAttributeCollection.cs
- DiscreteKeyFrames.cs
- DisplayInformation.cs
- ProfileService.cs
- QuestionEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlSchemaAppInfo.cs
- ImageClickEventArgs.cs
- PropertyPath.cs
- FilterException.cs
- TdsParameterSetter.cs
- FrameworkElementFactory.cs
- XmlLanguage.cs
- NavigationPropertyEmitter.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- FileDialogCustomPlaces.cs
- FullTextState.cs
- EventTrigger.cs
- SchemaTypeEmitter.cs
- XmlWriterSettings.cs
- DataGridViewCellMouseEventArgs.cs
- EventDescriptorCollection.cs
- XmlTextAttribute.cs
- SeverityFilter.cs
- TextBox.cs
- MetadataSource.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EdmItemCollection.OcAssemblyCache.cs
- ListBoxItem.cs
- codemethodreferenceexpression.cs
- OleDbFactory.cs
- HostUtils.cs
- CharacterString.cs
- WebSysDescriptionAttribute.cs
- DataBindingCollection.cs
- CalendarAutoFormatDialog.cs
- DesignerExtenders.cs
- InitializingNewItemEventArgs.cs
- ConnectionProviderAttribute.cs
- RangeValidator.cs
- BinaryEditor.cs
- ByteStream.cs
- ZipIOExtraField.cs
- UserPersonalizationStateInfo.cs
- VisemeEventArgs.cs
- Drawing.cs
- DoubleCollection.cs
- RequestTimeoutManager.cs
- Delegate.cs
- XpsS0ValidatingLoader.cs
- TypeDelegator.cs
- ReservationNotFoundException.cs