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
- SoapWriter.cs
- PipelineDeploymentState.cs
- TreeView.cs
- BindingListCollectionView.cs
- StreamWriter.cs
- LocalizableResourceBuilder.cs
- ListViewGroupConverter.cs
- SqlCommandBuilder.cs
- StreamWriter.cs
- ProgramNode.cs
- XmlEncodedRawTextWriter.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- FileClassifier.cs
- ADMembershipUser.cs
- MissingManifestResourceException.cs
- DPTypeDescriptorContext.cs
- WebPartConnectionsCancelVerb.cs
- Highlights.cs
- WpfSharedXamlSchemaContext.cs
- AutoGeneratedField.cs
- PhysicalAddress.cs
- IgnorePropertiesAttribute.cs
- Misc.cs
- HttpModuleCollection.cs
- GridProviderWrapper.cs
- Point4DConverter.cs
- VersionedStream.cs
- NoneExcludedImageIndexConverter.cs
- DataObjectAttribute.cs
- Image.cs
- HandoffBehavior.cs
- EntryIndex.cs
- RecognizedAudio.cs
- DBCommandBuilder.cs
- WsatConfiguration.cs
- MaskedTextBox.cs
- OneOf.cs
- WebConfigurationFileMap.cs
- Encoding.cs
- TableCellCollection.cs
- HuffModule.cs
- NameTable.cs
- QuerySettings.cs
- CachedFontFace.cs
- EdmScalarPropertyAttribute.cs
- Header.cs
- ApplicationSettingsBase.cs
- TransactionContextValidator.cs
- AnimationException.cs
- FlowDocumentReaderAutomationPeer.cs
- LogManagementAsyncResult.cs
- WindowsScroll.cs
- ConfigurationStrings.cs
- BitmapFrame.cs
- ObjectItemAssemblyLoader.cs
- CollectionBase.cs
- ToolStripContentPanelDesigner.cs
- EnumValAlphaComparer.cs
- Context.cs
- SpotLight.cs
- DefaultPerformanceCounters.cs
- SpecularMaterial.cs
- SHA1Managed.cs
- ViewManager.cs
- Soap.cs
- BaseCollection.cs
- InvalidCommandTreeException.cs
- Publisher.cs
- AttributeCollection.cs
- WindowsHyperlink.cs
- ActivityExecutionContext.cs
- FormatConvertedBitmap.cs
- XmlCharacterData.cs
- HttpApplicationFactory.cs
- UIElementAutomationPeer.cs
- TypedRowGenerator.cs
- ConsumerConnectionPointCollection.cs
- XmlNullResolver.cs
- EmptyControlCollection.cs
- SqlEnums.cs
- StorageFunctionMapping.cs
- ByteAnimationBase.cs
- QueryOperator.cs
- Activity.cs
- CancellationHandler.cs
- FileDialog_Vista.cs
- Stackframe.cs
- HttpSessionStateBase.cs
- WpfPayload.cs
- WebHttpDispatchOperationSelectorData.cs
- XmlSecureResolver.cs
- FileDocument.cs
- ColorMap.cs
- WSHttpSecurity.cs
- ToolStripDropDownClosingEventArgs.cs
- HttpCookiesSection.cs
- HierarchicalDataBoundControlAdapter.cs
- NativeMethods.cs
- SystemIPInterfaceStatistics.cs
- ReturnEventArgs.cs