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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TracedNativeMethods.cs
- EncodingDataItem.cs
- StandardToolWindows.cs
- DataGridViewColumnCollection.cs
- ModelUIElement3D.cs
- StrokeCollectionConverter.cs
- SqlInternalConnection.cs
- RegexStringValidator.cs
- NetworkInformationPermission.cs
- MoveSizeWinEventHandler.cs
- HtmlProps.cs
- DataColumnCollection.cs
- FontFamily.cs
- InstanceKeyView.cs
- KeyValueConfigurationCollection.cs
- Exceptions.cs
- PersonalizableTypeEntry.cs
- NativeMethods.cs
- ConfigXmlAttribute.cs
- HwndHostAutomationPeer.cs
- MatrixTransform.cs
- dataSvcMapFileLoader.cs
- FormViewPageEventArgs.cs
- Pair.cs
- CurrentTimeZone.cs
- InputBinding.cs
- Utils.cs
- UnsupportedPolicyOptionsException.cs
- GenerateHelper.cs
- JoinSymbol.cs
- StatementContext.cs
- DPCustomTypeDescriptor.cs
- SettingsProviderCollection.cs
- EngineSite.cs
- OracleCommandSet.cs
- SortDescriptionCollection.cs
- OleDbWrapper.cs
- IntSecurity.cs
- FormViewInsertedEventArgs.cs
- EventHandlerList.cs
- WebPartTracker.cs
- GeometryHitTestResult.cs
- TypographyProperties.cs
- SimpleHandlerFactory.cs
- ClientSideQueueItem.cs
- SchemaEntity.cs
- SectionInput.cs
- DataServiceStreamResponse.cs
- EnvironmentPermission.cs
- ComponentResourceKeyConverter.cs
- PatternMatchRules.cs
- ExtensionFile.cs
- RestHandlerFactory.cs
- MessagePropertyVariants.cs
- ScrollChrome.cs
- UserPreferenceChangingEventArgs.cs
- PowerModeChangedEventArgs.cs
- SwitchExpression.cs
- ToolboxItem.cs
- PasswordTextNavigator.cs
- BindingMemberInfo.cs
- SqlDataRecord.cs
- CompilerGeneratedAttribute.cs
- AnnotationMap.cs
- RecordBuilder.cs
- PerformanceCounterCategory.cs
- Keyboard.cs
- StyleCollection.cs
- MemberListBinding.cs
- BindingValueChangedEventArgs.cs
- MemberInfoSerializationHolder.cs
- ObjectHandle.cs
- KoreanLunisolarCalendar.cs
- ClaimSet.cs
- EntityTypeEmitter.cs
- UnsafeMethods.cs
- Utilities.cs
- AxDesigner.cs
- SystemFonts.cs
- FixedSOMImage.cs
- TransformGroup.cs
- HtmlButton.cs
- LifetimeServices.cs
- SizeF.cs
- WindowsRegion.cs
- Int32RectValueSerializer.cs
- ViewValidator.cs
- OneOfElement.cs
- ObjectPersistData.cs
- ScriptModule.cs
- ComponentConverter.cs
- HTTPNotFoundHandler.cs
- ResizeGrip.cs
- PairComparer.cs
- WebPageTraceListener.cs
- ExeContext.cs
- InputLanguageProfileNotifySink.cs
- RegionData.cs
- SurrogateEncoder.cs
- WebBrowserNavigatedEventHandler.cs