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
- SqlTrackingQuery.cs
- DynamicDataRouteHandler.cs
- SendKeys.cs
- StoreItemCollection.Loader.cs
- ColumnResult.cs
- PolicyUnit.cs
- CLSCompliantAttribute.cs
- NumericExpr.cs
- AppSettingsExpressionEditor.cs
- ListCommandEventArgs.cs
- EntityWrapper.cs
- LiteralTextParser.cs
- RequestResizeEvent.cs
- CompiledIdentityConstraint.cs
- ReturnEventArgs.cs
- SelfIssuedSamlTokenFactory.cs
- BulletedList.cs
- HttpInputStream.cs
- ZipIOCentralDirectoryFileHeader.cs
- FrameworkTextComposition.cs
- EmptyControlCollection.cs
- TransactionFlowOption.cs
- DesignerAutoFormatStyle.cs
- ImageBrush.cs
- TextFormatterImp.cs
- ValidationEventArgs.cs
- _NestedMultipleAsyncResult.cs
- ReliableMessagingVersion.cs
- InvalidateEvent.cs
- TextElementEnumerator.cs
- ResponseBodyWriter.cs
- DefaultProxySection.cs
- DateTime.cs
- CssStyleCollection.cs
- XmlElement.cs
- MonikerBuilder.cs
- ServiceOperationListItemList.cs
- ManagementException.cs
- StrongTypingException.cs
- DataControlButton.cs
- IISUnsafeMethods.cs
- LogReservationCollection.cs
- SaveFileDialogDesigner.cs
- EventProviderTraceListener.cs
- ProtocolViolationException.cs
- DoWorkEventArgs.cs
- GetLastErrorDetailsRequest.cs
- WindowHideOrCloseTracker.cs
- CanExecuteRoutedEventArgs.cs
- SplitterPanel.cs
- SetStateDesigner.cs
- EmbeddedMailObjectsCollection.cs
- DataGridToolTip.cs
- Math.cs
- GridViewColumnHeader.cs
- AndMessageFilterTable.cs
- ImageSource.cs
- ValidationEventArgs.cs
- PropertyDescriptorComparer.cs
- WithStatement.cs
- ValidationSummary.cs
- GeometryConverter.cs
- FieldAccessException.cs
- ConnectionManagementElement.cs
- CoTaskMemHandle.cs
- XXXOnTypeBuilderInstantiation.cs
- ModuleConfigurationInfo.cs
- AuthorizationRuleCollection.cs
- ReadOnlyPropertyMetadata.cs
- TextSimpleMarkerProperties.cs
- RichTextBoxConstants.cs
- MarkupCompilePass2.cs
- FilteredAttributeCollection.cs
- TextProperties.cs
- StateMachineExecutionState.cs
- ListViewSelectEventArgs.cs
- CopyNamespacesAction.cs
- LicenseManager.cs
- GPPOINT.cs
- PolicyException.cs
- LinkLabelLinkClickedEvent.cs
- MimeObjectFactory.cs
- followingsibling.cs
- ErrorEventArgs.cs
- EventLogPermission.cs
- ThreadInterruptedException.cs
- RequestQueryProcessor.cs
- TransformCollection.cs
- PrinterSettings.cs
- ButtonDesigner.cs
- PathGeometry.cs
- WeakReference.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DocumentEventArgs.cs
- EncodingFallbackAwareXmlTextWriter.cs
- adornercollection.cs
- CustomCredentialPolicy.cs
- ApplicationFileParser.cs
- NameTable.cs
- RelationshipConstraintValidator.cs