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
- IssuedTokenParametersElement.cs
- Graph.cs
- ISAPIWorkerRequest.cs
- WebPartConnectionsConfigureVerb.cs
- ErasingStroke.cs
- TextRangeEditTables.cs
- followingquery.cs
- DataGridViewTextBoxCell.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FlowDocumentReaderAutomationPeer.cs
- NativeActivityContext.cs
- SqlConnectionFactory.cs
- ProcessThread.cs
- DbSourceParameterCollection.cs
- XmlReturnReader.cs
- OutputCacheSettings.cs
- HtmlAnchor.cs
- DispatcherObject.cs
- XmlSchemas.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- MarkupExtensionReturnTypeAttribute.cs
- TextMetrics.cs
- NativeMethods.cs
- AlternateViewCollection.cs
- TransformDescriptor.cs
- SqlStream.cs
- RelationshipConverter.cs
- ContentControl.cs
- PerformanceCounterPermissionEntry.cs
- ConversionContext.cs
- Wizard.cs
- SelectionListComponentEditor.cs
- DSASignatureFormatter.cs
- ListViewTableCell.cs
- MembershipValidatePasswordEventArgs.cs
- _NegoStream.cs
- QueryResultOp.cs
- EntityDataSourceViewSchema.cs
- DataControlImageButton.cs
- SqlRecordBuffer.cs
- DocumentOutline.cs
- peersecurityelement.cs
- WebPartAuthorizationEventArgs.cs
- NonBatchDirectoryCompiler.cs
- ObjectSpanRewriter.cs
- DodSequenceMerge.cs
- LicenseContext.cs
- ThaiBuddhistCalendar.cs
- ResourcesGenerator.cs
- UserNameSecurityToken.cs
- WindowsFormsSynchronizationContext.cs
- LinkAreaEditor.cs
- DisplayNameAttribute.cs
- CustomValidator.cs
- TemplateColumn.cs
- ComplexLine.cs
- AuthenticationModulesSection.cs
- MsmqIntegrationSecurity.cs
- TransformDescriptor.cs
- ConsoleTraceListener.cs
- ErrorWebPart.cs
- CLRBindingWorker.cs
- Part.cs
- BinaryOperationBinder.cs
- Exceptions.cs
- ListViewAutomationPeer.cs
- TemplateComponentConnector.cs
- XdrBuilder.cs
- FtpWebRequest.cs
- DeadCharTextComposition.cs
- AmbientProperties.cs
- EntityViewGenerator.cs
- TraceLevelStore.cs
- Light.cs
- StringConverter.cs
- EntityClientCacheKey.cs
- LocalizationParserHooks.cs
- BamlLocalizer.cs
- TypeNameConverter.cs
- MULTI_QI.cs
- BamlBinaryWriter.cs
- InputScopeConverter.cs
- ConfigXmlText.cs
- HeaderCollection.cs
- HwndSourceKeyboardInputSite.cs
- QueryStringConverter.cs
- OracleConnectionString.cs
- WebBrowser.cs
- ProgressBar.cs
- XsltOutput.cs
- ClaimComparer.cs
- WebPartDeleteVerb.cs
- ImpersonationContext.cs
- ParserContext.cs
- httpstaticobjectscollection.cs
- Util.cs
- HttpCookiesSection.cs
- FormViewDeletedEventArgs.cs
- CustomAttribute.cs
- _NtlmClient.cs