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
- StrokeCollection2.cs
- ToolboxItemAttribute.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ObjectDataSourceMethodEventArgs.cs
- GridViewColumn.cs
- Animatable.cs
- CellParagraph.cs
- DataGridState.cs
- MethodCallConverter.cs
- ChangePassword.cs
- TargetException.cs
- ChameleonKey.cs
- PreProcessor.cs
- TcpStreams.cs
- FixedDocumentSequencePaginator.cs
- SerializationFieldInfo.cs
- AccessText.cs
- AuthenticateEventArgs.cs
- IsolationInterop.cs
- COMException.cs
- SharedDp.cs
- QilParameter.cs
- DataRowComparer.cs
- DynamicResourceExtension.cs
- Currency.cs
- ListBoxItemWrapperAutomationPeer.cs
- BindingExpression.cs
- ArgumentOutOfRangeException.cs
- LoginName.cs
- RowBinding.cs
- X509Utils.cs
- COM2IProvidePropertyBuilderHandler.cs
- SerializerDescriptor.cs
- Brush.cs
- CharUnicodeInfo.cs
- MultiTrigger.cs
- ManagedFilter.cs
- ButtonStandardAdapter.cs
- IndexedEnumerable.cs
- LinqDataSourceHelper.cs
- BaseUriHelper.cs
- CodeDelegateInvokeExpression.cs
- DockingAttribute.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- _TransmitFileOverlappedAsyncResult.cs
- BinaryObjectWriter.cs
- DbModificationCommandTree.cs
- CompensationDesigner.cs
- SimpleHandlerFactory.cs
- safemediahandle.cs
- ObjectManager.cs
- UnsafePeerToPeerMethods.cs
- AutomationInteropProvider.cs
- DeclarativeCatalogPart.cs
- NotConverter.cs
- SvcMapFile.cs
- DtrList.cs
- DataSourceProvider.cs
- Compiler.cs
- DetailsViewDeleteEventArgs.cs
- ResXResourceReader.cs
- InvalidAsynchronousStateException.cs
- CellIdBoolean.cs
- SystemResourceKey.cs
- CodeTypeDeclaration.cs
- SpeakCompletedEventArgs.cs
- XmlNamedNodeMap.cs
- RtfToXamlLexer.cs
- OnOperation.cs
- UserMapPath.cs
- GeometryModel3D.cs
- DSASignatureFormatter.cs
- ConfigsHelper.cs
- LifetimeServices.cs
- TextDpi.cs
- ProgressBarRenderer.cs
- ChainedAsyncResult.cs
- MultipartIdentifier.cs
- DecimalConstantAttribute.cs
- TakeOrSkipWhileQueryOperator.cs
- PropertyOverridesDialog.cs
- HandlerMappingMemo.cs
- Properties.cs
- FileDialog_Vista.cs
- Int16.cs
- ObjectAnimationUsingKeyFrames.cs
- NamedElement.cs
- TextEditorCharacters.cs
- SQLUtility.cs
- XmlC14NWriter.cs
- ListenerChannelContext.cs
- WmpBitmapEncoder.cs
- ListViewContainer.cs
- DbProviderManifest.cs
- DataGridViewColumnEventArgs.cs
- DataRow.cs
- ConstraintStruct.cs
- Normalization.cs
- ISAPIWorkerRequest.cs
- LinearGradientBrush.cs