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
- Control.cs
- CallbackValidator.cs
- PageThemeCodeDomTreeGenerator.cs
- DefinitionUpdate.cs
- PreProcessor.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ContainerParaClient.cs
- ResourceContainer.cs
- FilteredAttributeCollection.cs
- DataServiceQueryProvider.cs
- OrderedDictionaryStateHelper.cs
- XmlSchemaImporter.cs
- DbExpressionVisitor.cs
- KeyInfo.cs
- StatementContext.cs
- PerfProviderCollection.cs
- AccessDataSourceDesigner.cs
- TemplatedMailWebEventProvider.cs
- ByteConverter.cs
- DesignerPerfEventProvider.cs
- List.cs
- GregorianCalendarHelper.cs
- ToolStripItemCollection.cs
- PanelStyle.cs
- SchemaTableColumn.cs
- Point3DCollection.cs
- SocketInformation.cs
- SqlNodeAnnotation.cs
- IndexedSelectQueryOperator.cs
- DefaultPrintController.cs
- ArithmeticException.cs
- WriteTimeStream.cs
- EastAsianLunisolarCalendar.cs
- SQLDecimal.cs
- Misc.cs
- Drawing.cs
- ListItemsCollectionEditor.cs
- ButtonBaseAutomationPeer.cs
- _SslSessionsCache.cs
- SerializerDescriptor.cs
- MessageSecurityOverTcp.cs
- RightsManagementProvider.cs
- LocatorPart.cs
- ResolveNameEventArgs.cs
- cache.cs
- DataGridViewUtilities.cs
- EncodingTable.cs
- HtmlSelectionListAdapter.cs
- EntityDesignerDataSourceView.cs
- TagPrefixInfo.cs
- BindingEditor.xaml.cs
- FrameworkContentElement.cs
- UnmanagedMarshal.cs
- UnionCodeGroup.cs
- XmlConvert.cs
- BrowserTree.cs
- XmlComment.cs
- WebEvents.cs
- ProxyAssemblyNotLoadedException.cs
- ToolboxDataAttribute.cs
- ProcessModelInfo.cs
- SignatureTargetIdManager.cs
- ImportedPolicyConversionContext.cs
- CompositeCollection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- QueryAccessibilityHelpEvent.cs
- HttpWebRequest.cs
- basecomparevalidator.cs
- xml.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- _TimerThread.cs
- BoundingRectTracker.cs
- ModelItemCollection.cs
- MSAAWinEventWrap.cs
- AnchoredBlock.cs
- WebControl.cs
- behaviorssection.cs
- MsmqIntegrationBindingElement.cs
- SymLanguageVendor.cs
- Trace.cs
- EntitySqlQueryState.cs
- CacheVirtualItemsEvent.cs
- RTTypeWrapper.cs
- UrlPath.cs
- HtmlTernaryTree.cs
- QueueProcessor.cs
- StatusInfoItem.cs
- SmtpNetworkElement.cs
- DesignerSerializationManager.cs
- ByeMessageApril2005.cs
- ReachPageContentSerializerAsync.cs
- EntryWrittenEventArgs.cs
- TemplateKey.cs
- StartUpEventArgs.cs
- CodeGen.cs
- ValidationSummary.cs
- RequestStatusBarUpdateEventArgs.cs
- HMACSHA1.cs
- GridViewColumn.cs
- EntityDesignerBuildProvider.cs