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
- ExtensionSimplifierMarkupObject.cs
- SRef.cs
- LoginStatusDesigner.cs
- DesignerActionUI.cs
- ParentUndoUnit.cs
- XmlLanguage.cs
- PnrpPermission.cs
- OrderedDictionaryStateHelper.cs
- DetailsViewUpdateEventArgs.cs
- PreservationFileReader.cs
- ISAPIApplicationHost.cs
- StringFreezingAttribute.cs
- FloatUtil.cs
- SchemaImporterExtensionElement.cs
- XsltLoader.cs
- PropertyBuilder.cs
- WebBrowser.cs
- SpellerInterop.cs
- ListBindingConverter.cs
- OletxResourceManager.cs
- ListBox.cs
- WebPartDescription.cs
- CalendarDay.cs
- TimeoutException.cs
- RenameRuleObjectDialog.cs
- TextSelectionHighlightLayer.cs
- EnterpriseServicesHelper.cs
- Delegate.cs
- HiddenField.cs
- ContainsSearchOperator.cs
- XmlStreamStore.cs
- ReadOnlyDictionary.cs
- ItemCollection.cs
- Mouse.cs
- VarRemapper.cs
- Bidi.cs
- VectorCollectionValueSerializer.cs
- SchemaAttDef.cs
- Module.cs
- ClientApiGenerator.cs
- WindowsListBox.cs
- OutKeywords.cs
- ResourceBinder.cs
- PerformanceCounterScope.cs
- EntityCommandCompilationException.cs
- ProviderIncompatibleException.cs
- ArglessEventHandlerProxy.cs
- NetworkCredential.cs
- ApplicationServiceHelper.cs
- Composition.cs
- xamlnodes.cs
- LabelEditEvent.cs
- ScriptingScriptResourceHandlerSection.cs
- DataGridViewToolTip.cs
- MessageQueueException.cs
- ResourceReferenceExpressionConverter.cs
- PropertySourceInfo.cs
- NetPeerTcpBindingElement.cs
- WebConfigurationManager.cs
- DocumentXPathNavigator.cs
- RuntimeVariablesExpression.cs
- MultipleViewPattern.cs
- GridViewEditEventArgs.cs
- DocumentPageView.cs
- TextTreeUndoUnit.cs
- ResourceReferenceExpression.cs
- PropertyValueChangedEvent.cs
- InputBindingCollection.cs
- OleDbDataAdapter.cs
- InitializerFacet.cs
- WaitHandle.cs
- CatalogZoneBase.cs
- DocComment.cs
- DiscoveryClientDuplexChannel.cs
- ErrorFormatterPage.cs
- VirtualPathProvider.cs
- Geometry3D.cs
- DrawTreeNodeEventArgs.cs
- SettingsSavedEventArgs.cs
- ColorEditor.cs
- IOThreadTimer.cs
- ControlBindingsCollection.cs
- WindowsContainer.cs
- QilFactory.cs
- HorizontalAlignConverter.cs
- RequestCacheManager.cs
- KeyToListMap.cs
- SectionInformation.cs
- BitmapCodecInfoInternal.cs
- AxHostDesigner.cs
- PeerPresenceInfo.cs
- TableStyle.cs
- Size.cs
- SqlClientPermission.cs
- MDIWindowDialog.cs
- BindingGraph.cs
- RemoteWebConfigurationHostServer.cs
- StateWorkerRequest.cs
- HwndKeyboardInputProvider.cs
- JavaScriptObjectDeserializer.cs