Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / RegisteredExpandoAttribute.cs / 1 / RegisteredExpandoAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Justification = "Consistent with RegisterExpandoAttribute API."), ] public sealed class RegisteredExpandoAttribute { private Control _control; private string _name; private string _value; private string _controlId; private bool _encode; internal RegisteredExpandoAttribute(Control control, string controlId, string name, string value, bool encode) { Debug.Assert(control != null); Debug.Assert(!String.IsNullOrEmpty(controlId)); Debug.Assert(!String.IsNullOrEmpty(name)); // value can be null _control = control; _controlId = controlId; _name = name; _value = value; _encode = encode; } public string Name { get { return _name; } } public string Value { get { // may be null return _value; } } public Control Control { get { return _control; } } public string ControlId { get { return _controlId; } } public bool Encode { get { return _encode; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Justification = "Consistent with RegisterExpandoAttribute API."), ] public sealed class RegisteredExpandoAttribute { private Control _control; private string _name; private string _value; private string _controlId; private bool _encode; internal RegisteredExpandoAttribute(Control control, string controlId, string name, string value, bool encode) { Debug.Assert(control != null); Debug.Assert(!String.IsNullOrEmpty(controlId)); Debug.Assert(!String.IsNullOrEmpty(name)); // value can be null _control = control; _controlId = controlId; _name = name; _value = value; _encode = encode; } public string Name { get { return _name; } } public string Value { get { // may be null return _value; } } public Control Control { get { return _control; } } public string ControlId { get { return _controlId; } } public bool Encode { get { return _encode; } } } } // 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
- Evidence.cs
- AbstractSvcMapFileLoader.cs
- NextPreviousPagerField.cs
- CalendarDay.cs
- AutomationPattern.cs
- CollectionBuilder.cs
- StateMachineAction.cs
- Timer.cs
- AttachInfo.cs
- MaskInputRejectedEventArgs.cs
- GeneralTransform3D.cs
- FlowDocumentScrollViewer.cs
- SqlBuilder.cs
- CompilerError.cs
- PropertyKey.cs
- MouseEventArgs.cs
- PrtCap_Builder.cs
- ContextMenu.cs
- ListSortDescription.cs
- COM2TypeInfoProcessor.cs
- Unit.cs
- VirtualPathUtility.cs
- PropertyConverter.cs
- RequestResizeEvent.cs
- LinqDataSourceValidationException.cs
- ManagedWndProcTracker.cs
- DynamicMethod.cs
- ReachObjectContext.cs
- RelatedImageListAttribute.cs
- ParameterCollection.cs
- DebugView.cs
- SiteMapProvider.cs
- WebSysDisplayNameAttribute.cs
- ButtonFlatAdapter.cs
- MDIClient.cs
- TextEditorCharacters.cs
- TextTreeInsertElementUndoUnit.cs
- CookielessHelper.cs
- XhtmlConformanceSection.cs
- ToolStripComboBox.cs
- Part.cs
- EditorOptionAttribute.cs
- SizeIndependentAnimationStorage.cs
- CryptoApi.cs
- BufferedStream2.cs
- TlsnegoTokenProvider.cs
- IODescriptionAttribute.cs
- SystemException.cs
- _SslStream.cs
- ToolStripRendererSwitcher.cs
- SerializerDescriptor.cs
- MessageAction.cs
- ToolStripDropDownDesigner.cs
- CompilationLock.cs
- XmlSchemaCompilationSettings.cs
- ConcurrentStack.cs
- SqlPersonalizationProvider.cs
- ConfigurationLocationCollection.cs
- ExpandSegment.cs
- RelatedImageListAttribute.cs
- Win32Native.cs
- XmlArrayItemAttributes.cs
- PageSetupDialog.cs
- InfoCardSymmetricAlgorithm.cs
- basenumberconverter.cs
- TextRangeAdaptor.cs
- ItemsChangedEventArgs.cs
- ADRoleFactory.cs
- EntityDescriptor.cs
- MouseOverProperty.cs
- XPathNavigatorKeyComparer.cs
- EllipticalNodeOperations.cs
- BitmapEffectrendercontext.cs
- bidPrivateBase.cs
- EqualityComparer.cs
- ComboBoxRenderer.cs
- InsufficientMemoryException.cs
- ServiceHttpHandlerFactory.cs
- Timeline.cs
- HttpRawResponse.cs
- FormatterConverter.cs
- ImageSourceConverter.cs
- ConfigurationSectionGroup.cs
- ItemPager.cs
- TypeBuilder.cs
- ObjectStateManagerMetadata.cs
- SecurityException.cs
- IODescriptionAttribute.cs
- DataSetUtil.cs
- Trigger.cs
- AbandonedMutexException.cs
- AnnotationAdorner.cs
- StateMachineWorkflow.cs
- ResolveNameEventArgs.cs
- HtmlFormParameterReader.cs
- DeviceFilterEditorDialog.cs
- IconBitmapDecoder.cs
- DataObjectPastingEventArgs.cs
- CriticalExceptions.cs
- QuaternionAnimation.cs