Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / RegisteredExpandoAttribute.cs / 1305376 / RegisteredExpandoAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; [ 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; [ 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
- HttpCachePolicyElement.cs
- ConfigXmlSignificantWhitespace.cs
- CompilerWrapper.cs
- Comparer.cs
- StylusOverProperty.cs
- SortQueryOperator.cs
- GiveFeedbackEvent.cs
- HttpApplicationFactory.cs
- NotifyCollectionChangedEventArgs.cs
- RegisterResponseInfo.cs
- ContentElementCollection.cs
- Parser.cs
- ReflectionUtil.cs
- RequestCacheManager.cs
- FixedPageProcessor.cs
- _SingleItemRequestCache.cs
- WebMessageFormatHelper.cs
- DesignerCategoryAttribute.cs
- OracleBoolean.cs
- LayoutTableCell.cs
- XmlSchemaObjectTable.cs
- SQLSingle.cs
- StringAttributeCollection.cs
- OdbcRowUpdatingEvent.cs
- XmlNodeComparer.cs
- TextEndOfSegment.cs
- __ComObject.cs
- XsdCachingReader.cs
- TreeWalker.cs
- unsafenativemethodsother.cs
- Wildcard.cs
- OdbcFactory.cs
- EnvelopedSignatureTransform.cs
- MediaCommands.cs
- IntPtr.cs
- WebPartConnectionsEventArgs.cs
- ImageButton.cs
- ExpressionList.cs
- BlobPersonalizationState.cs
- TemplatePartAttribute.cs
- ClaimSet.cs
- TextFormatterHost.cs
- UnmanagedMemoryStreamWrapper.cs
- MenuAutomationPeer.cs
- RegexFCD.cs
- OleDbMetaDataFactory.cs
- TagNameToTypeMapper.cs
- WebPartMenu.cs
- PrincipalPermissionMode.cs
- Schema.cs
- Repeater.cs
- ActivityCollectionMarkupSerializer.cs
- ErrorStyle.cs
- DynamicQueryableWrapper.cs
- Positioning.cs
- EncoderParameter.cs
- CharEnumerator.cs
- HMACSHA512.cs
- UnsafeNativeMethods.cs
- Pool.cs
- AvtEvent.cs
- TypeDescriptionProvider.cs
- MissingMemberException.cs
- ADMembershipUser.cs
- HiddenFieldPageStatePersister.cs
- QueryCursorEventArgs.cs
- LogWriteRestartAreaAsyncResult.cs
- wgx_render.cs
- PeerReferralPolicy.cs
- XDeferredAxisSource.cs
- InstanceData.cs
- CodeNamespaceImport.cs
- GridViewAutomationPeer.cs
- ConfigurationLoader.cs
- ToolStripProgressBar.cs
- TypeUnloadedException.cs
- HttpProfileGroupBase.cs
- FormatSettings.cs
- AssemblyBuilder.cs
- ScriptManager.cs
- JavaScriptSerializer.cs
- EntityDataSourceSelectingEventArgs.cs
- DataStorage.cs
- TransformGroup.cs
- BoundField.cs
- SessionViewState.cs
- FixedPosition.cs
- FileChangesMonitor.cs
- ConnectionConsumerAttribute.cs
- SplashScreen.cs
- MenuRendererStandards.cs
- SettingsPropertyCollection.cs
- UmAlQuraCalendar.cs
- FormViewModeEventArgs.cs
- ModelVisual3D.cs
- KnownTypesProvider.cs
- UserControlCodeDomTreeGenerator.cs
- typedescriptorpermission.cs
- FormView.cs
- Site.cs