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
- LogLogRecordHeader.cs
- TypeDependencyAttribute.cs
- FlowDocumentPaginator.cs
- StyleModeStack.cs
- Listbox.cs
- Util.cs
- WebCategoryAttribute.cs
- SqlClientPermission.cs
- SecurityUniqueId.cs
- ToolstripProfessionalRenderer.cs
- DataKeyCollection.cs
- Utils.cs
- TimeSpan.cs
- ColumnBinding.cs
- ClassicBorderDecorator.cs
- XPathSelfQuery.cs
- MarkupExtensionReturnTypeAttribute.cs
- UnsafeNativeMethods.cs
- WebPartConnectionsCloseVerb.cs
- OutputCacheProfile.cs
- SettingsPropertyIsReadOnlyException.cs
- ErrorWebPart.cs
- BindingNavigator.cs
- DataGridTablesFactory.cs
- MessagingDescriptionAttribute.cs
- ProjectedSlot.cs
- Geometry3D.cs
- BasicExpressionVisitor.cs
- ReadOnlyMetadataCollection.cs
- IODescriptionAttribute.cs
- FontDifferentiator.cs
- SystemIPGlobalStatistics.cs
- FilterException.cs
- Utils.cs
- AuthenticationService.cs
- IList.cs
- XmlSerializerSection.cs
- XmlSchemaAttributeGroup.cs
- LinkArea.cs
- AnchoredBlock.cs
- Effect.cs
- File.cs
- TextCharacters.cs
- TranslateTransform.cs
- ByteStreamGeometryContext.cs
- precedingquery.cs
- EntityDataSourceChangedEventArgs.cs
- XmlSchemaAppInfo.cs
- AssociationSetMetadata.cs
- OdbcUtils.cs
- WebPartConnectionsConfigureVerb.cs
- DocumentXPathNavigator.cs
- DbSourceParameterCollection.cs
- ImageList.cs
- CollectionType.cs
- WebEncodingValidatorAttribute.cs
- PanningMessageFilter.cs
- ResolveDuplex11AsyncResult.cs
- ViewSimplifier.cs
- EncodingInfo.cs
- ExeContext.cs
- HtmlToClrEventProxy.cs
- PersistChildrenAttribute.cs
- TypeSystem.cs
- ApplicationHost.cs
- ProxyWebPartConnectionCollection.cs
- ScaleTransform.cs
- MulticastIPAddressInformationCollection.cs
- HttpServerUtilityWrapper.cs
- ImpersonationContext.cs
- Utils.cs
- _BasicClient.cs
- DesignerActionUIStateChangeEventArgs.cs
- DefaultAssemblyResolver.cs
- BigInt.cs
- DetailsViewCommandEventArgs.cs
- BitmapFrameDecode.cs
- PrimitiveXmlSerializers.cs
- ManagementBaseObject.cs
- CompilerGeneratedAttribute.cs
- DocumentViewerConstants.cs
- RuleConditionDialog.cs
- XmlDataSourceNodeDescriptor.cs
- GenericParameterDataContract.cs
- ViewCellRelation.cs
- SimpleType.cs
- DataServiceRequestOfT.cs
- EpmSyndicationContentSerializer.cs
- RuntimeHandles.cs
- InnerItemCollectionView.cs
- DynamicPropertyReader.cs
- UnsafeMethods.cs
- OptionUsage.cs
- WSSecurityPolicy11.cs
- IdnElement.cs
- DBPropSet.cs
- UTF32Encoding.cs
- DataViewSettingCollection.cs
- ClassHandlersStore.cs
- TagElement.cs