Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / RegisteredExpandoAttribute.cs / 1 / RegisteredExpandoAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), 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; using System.Security.Permissions; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), 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
- odbcmetadatacollectionnames.cs
- SamlConstants.cs
- SoapProcessingBehavior.cs
- BamlLocalizableResourceKey.cs
- CompilationUtil.cs
- COM2EnumConverter.cs
- XmlNavigatorFilter.cs
- PerformanceCountersElement.cs
- MessageQueue.cs
- ItemCollection.cs
- IDictionary.cs
- ExpressionPrefixAttribute.cs
- SmiXetterAccessMap.cs
- MdImport.cs
- MobileUITypeEditor.cs
- PointCollection.cs
- AutoResetEvent.cs
- Size3D.cs
- ClientSettingsSection.cs
- StrongNameUtility.cs
- ToolStripContextMenu.cs
- CmsInterop.cs
- UserNameSecurityTokenAuthenticator.cs
- FrameAutomationPeer.cs
- StickyNoteHelper.cs
- Compensate.cs
- Accessible.cs
- MdiWindowListStrip.cs
- DataSourceHelper.cs
- LogManagementAsyncResult.cs
- FormClosingEvent.cs
- ResourcePermissionBaseEntry.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ClientSection.cs
- ListControlDataBindingHandler.cs
- PackUriHelper.cs
- Scene3D.cs
- ToolStripContentPanel.cs
- ImageButton.cs
- TrustLevelCollection.cs
- NonVisualControlAttribute.cs
- ReadOnlyCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- XamlValidatingReader.cs
- FormatterConverter.cs
- MediaTimeline.cs
- MetabaseReader.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataTableReader.cs
- HttpApplication.cs
- ELinqQueryState.cs
- TaskExtensions.cs
- UriParserTemplates.cs
- LocalBuilder.cs
- SafeArrayTypeMismatchException.cs
- OdbcParameter.cs
- ClassGenerator.cs
- RuntimeWrappedException.cs
- MouseButton.cs
- UdpDiscoveryEndpointElement.cs
- HtmlShimManager.cs
- DataControlField.cs
- FontCacheLogic.cs
- ErrorBehavior.cs
- IndexedGlyphRun.cs
- ReadOnlyObservableCollection.cs
- BridgeDataRecord.cs
- TimeSpan.cs
- PeerApplicationLaunchInfo.cs
- AssemblyUtil.cs
- MultiView.cs
- HatchBrush.cs
- TrustLevelCollection.cs
- GenericUI.cs
- WindowsGraphicsCacheManager.cs
- XslNumber.cs
- IndexerNameAttribute.cs
- RegexInterpreter.cs
- ListBox.cs
- ViewGenerator.cs
- SamlEvidence.cs
- InputScope.cs
- RewritingProcessor.cs
- CompositeClientFormatter.cs
- SecurityCriticalDataForSet.cs
- bidPrivateBase.cs
- DropShadowEffect.cs
- StorageFunctionMapping.cs
- BrowserTree.cs
- WindowClosedEventArgs.cs
- _HTTPDateParse.cs
- QualifiedCellIdBoolean.cs
- HttpValueCollection.cs
- OleDbParameter.cs
- OperandQuery.cs
- ControlBuilder.cs
- TreeNodeBinding.cs
- DataComponentNameHandler.cs
- ISSmlParser.cs
- LayoutEvent.cs