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
- ContractMapping.cs
- SQLUtility.cs
- NumericUpDownAcceleration.cs
- CompositeFontFamily.cs
- UriParserTemplates.cs
- unsafenativemethodsother.cs
- MatrixValueSerializer.cs
- TextControlDesigner.cs
- FileDialogCustomPlaces.cs
- XmlAttributes.cs
- ToolBar.cs
- MailWriter.cs
- SmtpSection.cs
- Matrix3DValueSerializer.cs
- SystemException.cs
- AcceleratedTokenAuthenticator.cs
- EventManager.cs
- ServiceSecurityAuditElement.cs
- HttpCapabilitiesSectionHandler.cs
- ApplicationFileParser.cs
- ToolStripGrip.cs
- unitconverter.cs
- DataException.cs
- CaseInsensitiveOrdinalStringComparer.cs
- HttpStreams.cs
- HttpPostedFile.cs
- entityreference_tresulttype.cs
- FormViewDeletedEventArgs.cs
- FixedDocumentPaginator.cs
- ProtocolsSection.cs
- InitializerFacet.cs
- DataStreamFromComStream.cs
- ViewKeyConstraint.cs
- WindowsIdentity.cs
- ConditionalAttribute.cs
- XmlSequenceWriter.cs
- ArrayElementGridEntry.cs
- Helpers.cs
- UpdateException.cs
- SimpleApplicationHost.cs
- initElementDictionary.cs
- XmlSortKey.cs
- MarkupExtensionParser.cs
- URLString.cs
- CatalogZoneBase.cs
- UnsafeNativeMethods.cs
- TreeNodeConverter.cs
- EventsTab.cs
- JavaScriptString.cs
- SystemUdpStatistics.cs
- CompiledQuery.cs
- SafeSerializationManager.cs
- HttpServerChannel.cs
- CapabilitiesSection.cs
- EventManager.cs
- PenLineJoinValidation.cs
- RoleGroupCollection.cs
- TemplatedAdorner.cs
- OrderedDictionary.cs
- TextReader.cs
- ParseChildrenAsPropertiesAttribute.cs
- LinkLabel.cs
- SequentialWorkflowRootDesigner.cs
- ValidatedControlConverter.cs
- PrintPreviewControl.cs
- WebPartManagerInternals.cs
- EditorPartChrome.cs
- DateRangeEvent.cs
- cookiecontainer.cs
- ScalarOps.cs
- SettingsPropertyIsReadOnlyException.cs
- ConstraintEnumerator.cs
- QilValidationVisitor.cs
- PrintSystemException.cs
- CollectionCodeDomSerializer.cs
- ResourceAttributes.cs
- PreloadHost.cs
- ClientClassGenerator.cs
- LinqDataSourceSelectEventArgs.cs
- IsolatedStorage.cs
- StaticExtension.cs
- PageCatalogPart.cs
- SelectionProcessor.cs
- LocalBuilder.cs
- MetadataSource.cs
- ErrorTableItemStyle.cs
- PointAnimationClockResource.cs
- Ray3DHitTestResult.cs
- ClassHandlersStore.cs
- ProxyGenerationError.cs
- SizeChangedInfo.cs
- BreakRecordTable.cs
- ShaderEffect.cs
- MetaChildrenColumn.cs
- ByteStreamMessage.cs
- CodeComment.cs
- CaseExpr.cs
- HTMLTextWriter.cs
- SourceFileBuildProvider.cs
- GridLength.cs