Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / DesignerDeviceConfig.cs / 1305376 / DesignerDeviceConfig.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Web.UI.MobileControls.Adapters; using System.Web.Util; namespace System.Web.UI.MobileControls { // Data structure for a specialized version of IndividualDeviceConfig, // used in design mode. [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] class DesignerDeviceConfig : IndividualDeviceConfig { internal DesignerDeviceConfig(String pageAdapterType) : base(Type.GetType (pageAdapterType)) { } internal override IControlAdapter NewControlAdapter(Type originalControlType) { IControlAdapter adapter; IWebObjectFactory adapterFactory = LookupControl(originalControlType); if (adapterFactory != null) { adapter = (IControlAdapter) adapterFactory.CreateInstance(); } else { DesignerAdapterAttribute da; da = (DesignerAdapterAttribute) TypeDescriptor.GetAttributes(originalControlType) [typeof(DesignerAdapterAttribute)]; if (da == null) { return new EmptyControlAdapter(); } Type adapterType = Type.GetType(da.TypeName); if (adapterType == null) { return new EmptyControlAdapter(); } adapter = Activator.CreateInstance(adapterType) as IControlAdapter; } if (adapter == null) { adapter = new EmptyControlAdapter(); } return adapter; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpCachePolicyBase.cs
- SQLChars.cs
- DelegateSerializationHolder.cs
- InfoCardProofToken.cs
- SafeNativeMethods.cs
- Size3D.cs
- TextServicesCompartmentContext.cs
- ValueTable.cs
- CssStyleCollection.cs
- DataBindingList.cs
- OlePropertyStructs.cs
- PropertyDescriptorCollection.cs
- DesignerDataSourceView.cs
- UnlockInstanceAsyncResult.cs
- PropertyGroupDescription.cs
- ExpressionWriter.cs
- ValidationEventArgs.cs
- AutoGeneratedFieldProperties.cs
- HealthMonitoringSectionHelper.cs
- StorageMappingItemLoader.cs
- EnvironmentPermission.cs
- MultiView.cs
- SchemeSettingElementCollection.cs
- XmlReflectionImporter.cs
- RequestResizeEvent.cs
- TraceRecord.cs
- UnsafeNativeMethods.cs
- MruCache.cs
- ListViewDataItem.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DesignTimeParseData.cs
- TextTreeTextElementNode.cs
- TrimSurroundingWhitespaceAttribute.cs
- SByte.cs
- MultipleViewPatternIdentifiers.cs
- GeometryGroup.cs
- AttributeUsageAttribute.cs
- CodeIterationStatement.cs
- CellCreator.cs
- UnsafeNativeMethods.cs
- FlowDocumentView.cs
- Process.cs
- QilInvoke.cs
- OutputChannel.cs
- UriTemplateClientFormatter.cs
- ScaleTransform.cs
- HttpCachePolicy.cs
- LogPolicy.cs
- ColumnResult.cs
- StreamUpgradeProvider.cs
- CopyOnWriteList.cs
- SqlFactory.cs
- AcceleratedTokenProviderState.cs
- Single.cs
- ExpressionLexer.cs
- InvalidCommandTreeException.cs
- validationstate.cs
- Base64Stream.cs
- querybuilder.cs
- AddInAttribute.cs
- DbConnectionStringBuilder.cs
- FlowLayoutSettings.cs
- SizeKeyFrameCollection.cs
- ToolStripDesignerUtils.cs
- XmlDataSource.cs
- COM2IProvidePropertyBuilderHandler.cs
- BufferBuilder.cs
- Int32KeyFrameCollection.cs
- UrlMappingsModule.cs
- TableProviderWrapper.cs
- ListViewContainer.cs
- SubpageParaClient.cs
- WindowsAuthenticationEventArgs.cs
- SchemaElementDecl.cs
- LineInfo.cs
- AncillaryOps.cs
- XmlILOptimizerVisitor.cs
- ELinqQueryState.cs
- XmlSchemaSimpleType.cs
- Update.cs
- TraceEventCache.cs
- SatelliteContractVersionAttribute.cs
- Selector.cs
- Pair.cs
- UInt16Converter.cs
- SafeProcessHandle.cs
- MetricEntry.cs
- SessionEndingEventArgs.cs
- SecureStringHasher.cs
- AnnotationResource.cs
- ReachSerializerAsync.cs
- CssTextWriter.cs
- WebPartPersonalization.cs
- MsmqIntegrationSecurityMode.cs
- HtmlInputButton.cs
- SafePEFileHandle.cs
- XhtmlTextWriter.cs
- PhysicalFontFamily.cs
- ValidationErrorEventArgs.cs
- RegistryHandle.cs