Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataError.cs
- SizeAnimationUsingKeyFrames.cs
- UnmanagedMemoryAccessor.cs
- CompositeFontFamily.cs
- SiteMapPath.cs
- CodeCatchClauseCollection.cs
- InvokeProviderWrapper.cs
- OrderedDictionaryStateHelper.cs
- ExtensionSimplifierMarkupObject.cs
- WebPartConnectionCollection.cs
- InternalPermissions.cs
- MethodBuilderInstantiation.cs
- DataListItemCollection.cs
- ProvidersHelper.cs
- EventMetadata.cs
- NotificationContext.cs
- CompilerLocalReference.cs
- Empty.cs
- SoapCommonClasses.cs
- DefaultValueAttribute.cs
- PauseStoryboard.cs
- DefaultPrintController.cs
- ImageListUtils.cs
- CompiledWorkflowDefinitionContext.cs
- PackageRelationship.cs
- GridViewCancelEditEventArgs.cs
- CopyEncoder.cs
- XPathBuilder.cs
- HtmlHead.cs
- CounterSet.cs
- Thumb.cs
- PiiTraceSource.cs
- OlePropertyStructs.cs
- XmlQueryCardinality.cs
- OletxVolatileEnlistment.cs
- FileDialog.cs
- TokenBasedSetEnumerator.cs
- MessageHeaderInfoTraceRecord.cs
- DataIdProcessor.cs
- UIElement3D.cs
- ArrayConverter.cs
- CustomValidator.cs
- SrgsSubset.cs
- TraceRecord.cs
- OrderToken.cs
- AuthorizationSection.cs
- contentDescriptor.cs
- EntityProviderServices.cs
- ListBase.cs
- DefaultClaimSet.cs
- DesignColumnCollection.cs
- PropertyPathConverter.cs
- CryptoApi.cs
- DeleteCardRequest.cs
- TdsParserHelperClasses.cs
- Utils.cs
- SpellCheck.cs
- PropagationProtocolsTracing.cs
- SecurityToken.cs
- WCFBuildProvider.cs
- ToolboxItemFilterAttribute.cs
- PreservationFileWriter.cs
- GlyphsSerializer.cs
- ServicePointManagerElement.cs
- FontUnitConverter.cs
- EdmToObjectNamespaceMap.cs
- DesignerEventService.cs
- TreeViewItemAutomationPeer.cs
- ACE.cs
- AdapterUtil.cs
- IDReferencePropertyAttribute.cs
- DocumentStream.cs
- PenLineCapValidation.cs
- SymmetricKey.cs
- WebMessageEncodingBindingElement.cs
- RewritingValidator.cs
- CodeNamespaceImportCollection.cs
- FlowNode.cs
- ImpersonationContext.cs
- ColorContextHelper.cs
- ObjectDataSourceStatusEventArgs.cs
- CollectionView.cs
- ViewKeyConstraint.cs
- IisTraceWebEventProvider.cs
- Point3D.cs
- ButtonFieldBase.cs
- DrawingBrush.cs
- DataBindingList.cs
- XmlStringTable.cs
- TaiwanLunisolarCalendar.cs
- MessageQueuePermissionAttribute.cs
- SynchronizedRandom.cs
- MessageSecurityOverTcpElement.cs
- Point3DCollection.cs
- TextureBrush.cs
- ControlOperationBehavior.cs
- WorkflowOperationBehavior.cs
- FormViewCommandEventArgs.cs
- DecimalConverter.cs
- ConfigurationValidatorBase.cs