Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / MobileUserControl.cs / 1305376 / MobileUserControl.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Web.UI; using System.Security.Permissions; namespace System.Web.UI.MobileControls { ///[ Designer("Microsoft.VisualStudio.Web.WebForms.MobileWebFormDesigner, " + AssemblyRef.MicrosoftVisualStudioWeb, typeof(IRootDesigner)), Designer(typeof(System.Web.UI.Design.MobileControls.MobileUserControlDesigner)) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [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.")] public class MobileUserControl : UserControl { /// protected override void AddParsedSubObject(Object o) { // Note : AddParsedSubObject is never called at DesignTime if (o is StyleSheet) { if (_styleSheet != null) { throw new Exception(SR.GetString(SR.StyleSheet_DuplicateWarningMessage)); } else { _styleSheet = (StyleSheet)o; } } base.AddParsedSubObject(o); } private StyleSheet _styleSheet = null; internal StyleSheet StyleSheet { get { return (_styleSheet != null) ? _styleSheet : StyleSheet.Default; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Web.UI; using System.Security.Permissions; namespace System.Web.UI.MobileControls { ///[ Designer("Microsoft.VisualStudio.Web.WebForms.MobileWebFormDesigner, " + AssemblyRef.MicrosoftVisualStudioWeb, typeof(IRootDesigner)), Designer(typeof(System.Web.UI.Design.MobileControls.MobileUserControlDesigner)) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [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.")] public class MobileUserControl : UserControl { /// protected override void AddParsedSubObject(Object o) { // Note : AddParsedSubObject is never called at DesignTime if (o is StyleSheet) { if (_styleSheet != null) { throw new Exception(SR.GetString(SR.StyleSheet_DuplicateWarningMessage)); } else { _styleSheet = (StyleSheet)o; } } base.AddParsedSubObject(o); } private StyleSheet _styleSheet = null; internal StyleSheet StyleSheet { get { return (_styleSheet != null) ? _styleSheet : StyleSheet.Default; } } } } // 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
- WindowsStatusBar.cs
- DesignerToolStripControlHost.cs
- CultureMapper.cs
- PreviewControlDesigner.cs
- ContextStaticAttribute.cs
- SuppressIldasmAttribute.cs
- RenderTargetBitmap.cs
- WebPartUserCapability.cs
- __ComObject.cs
- SerializationSectionGroup.cs
- FontStyles.cs
- UnsafeNativeMethods.cs
- FrameworkElementAutomationPeer.cs
- GACMembershipCondition.cs
- X509SecurityToken.cs
- ToolStripDropDownButton.cs
- InternalException.cs
- MailDefinitionBodyFileNameEditor.cs
- NoResizeSelectionBorderGlyph.cs
- DesignerObject.cs
- ButtonChrome.cs
- BamlCollectionHolder.cs
- FrameworkPropertyMetadata.cs
- BindingCollection.cs
- ByteAnimation.cs
- TextRenderer.cs
- ContextMarshalException.cs
- EntityReference.cs
- ClientConfigurationSystem.cs
- ImageBrush.cs
- StylusDownEventArgs.cs
- ManagementBaseObject.cs
- OracleConnectionString.cs
- MetadataException.cs
- Translator.cs
- TraceUtility.cs
- XmlnsCompatibleWithAttribute.cs
- SmiEventStream.cs
- ReaderContextStackData.cs
- ImageUrlEditor.cs
- SymmetricAlgorithm.cs
- SafeCryptContextHandle.cs
- HttpVersion.cs
- PaperSize.cs
- State.cs
- ContentType.cs
- InstanceData.cs
- CalendarDay.cs
- SequenceNumber.cs
- FixedSOMSemanticBox.cs
- ResourceContainerWrapper.cs
- ThreadInterruptedException.cs
- RoutedUICommand.cs
- _ListenerRequestStream.cs
- Utilities.cs
- XmlSchema.cs
- BypassElementCollection.cs
- StringSource.cs
- TrustSection.cs
- FilterQueryOptionExpression.cs
- EventDescriptorCollection.cs
- LongSumAggregationOperator.cs
- ProfilePropertyMetadata.cs
- OracleInfoMessageEventArgs.cs
- HtmlInputReset.cs
- DisableDpiAwarenessAttribute.cs
- InputEventArgs.cs
- XsltArgumentList.cs
- WebBrowserDesigner.cs
- WizardPanelChangingEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- JsonWriter.cs
- ClaimSet.cs
- UnsafeNativeMethods.cs
- TouchesCapturedWithinProperty.cs
- DataQuery.cs
- CodeArgumentReferenceExpression.cs
- EventLogTraceListener.cs
- ISAPIWorkerRequest.cs
- HostedTransportConfigurationManager.cs
- RegexGroupCollection.cs
- AddInController.cs
- SqlDataReader.cs
- WSTrustDec2005.cs
- EnumValAlphaComparer.cs
- SqlCharStream.cs
- _SingleItemRequestCache.cs
- _AutoWebProxyScriptEngine.cs
- Int32RectConverter.cs
- JsonQueryStringConverter.cs
- WebRequestModulesSection.cs
- HostVisual.cs
- counter.cs
- CollectionBuilder.cs
- WriteLineDesigner.xaml.cs
- IteratorDescriptor.cs
- LocalBuilder.cs
- OleDbInfoMessageEvent.cs
- ListBindingHelper.cs
- PlanCompiler.cs