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
- EntityDesignerUtils.cs
- Trace.cs
- ColumnPropertiesGroup.cs
- ClientClassGenerator.cs
- RelativeSource.cs
- GeneratedCodeAttribute.cs
- ProfileModule.cs
- ProjectionCamera.cs
- filewebresponse.cs
- PrePostDescendentsWalker.cs
- PhysicalFontFamily.cs
- SimpleBitVector32.cs
- DbReferenceCollection.cs
- OwnerDrawPropertyBag.cs
- SizeFConverter.cs
- SystemInfo.cs
- DataServiceEntityAttribute.cs
- EntitySqlQueryCacheEntry.cs
- ListView.cs
- OuterProxyWrapper.cs
- UnauthorizedAccessException.cs
- FieldBuilder.cs
- PolygonHotSpot.cs
- EnvelopeVersion.cs
- Renderer.cs
- CultureTableRecord.cs
- WebPartMenu.cs
- ToolBarPanel.cs
- WebPartUtil.cs
- SerializationStore.cs
- XmlSchemaInclude.cs
- OracleConnectionStringBuilder.cs
- PaperSize.cs
- SrgsRule.cs
- ScrollViewer.cs
- TargetConverter.cs
- ComboBox.cs
- ObjectDataProvider.cs
- StyleHelper.cs
- UIElementParagraph.cs
- TrackBar.cs
- TraceUtility.cs
- ResourcePermissionBaseEntry.cs
- JoinQueryOperator.cs
- Rss20FeedFormatter.cs
- BaseTreeIterator.cs
- UidManager.cs
- XmlEncoding.cs
- XsdBuilder.cs
- TogglePattern.cs
- StaticTextPointer.cs
- VariantWrapper.cs
- CrossContextChannel.cs
- CookieParameter.cs
- GlyphShapingProperties.cs
- PlaceHolder.cs
- NullableDoubleMinMaxAggregationOperator.cs
- ObjectSet.cs
- path.cs
- SqlGatherConsumedAliases.cs
- RowBinding.cs
- PointF.cs
- AdornerPresentationContext.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WindowPatternIdentifiers.cs
- FormViewRow.cs
- CalendarAutomationPeer.cs
- ErrorHandlingAcceptor.cs
- DiscoveryRequestHandler.cs
- Semaphore.cs
- StateManager.cs
- TrackBar.cs
- HandledMouseEvent.cs
- EntityException.cs
- SmiGettersStream.cs
- OneOfConst.cs
- EntityDataSourceSelectedEventArgs.cs
- DbgUtil.cs
- InvokerUtil.cs
- BinaryConverter.cs
- DataMember.cs
- DataPagerField.cs
- TrackingCondition.cs
- ControlAdapter.cs
- SqlProviderManifest.cs
- FormViewPagerRow.cs
- KeyFrames.cs
- CodeSnippetTypeMember.cs
- EventHandlingScope.cs
- Stylesheet.cs
- ErrorInfoXmlDocument.cs
- ListViewSelectEventArgs.cs
- TypeUsageBuilder.cs
- BoolExpressionVisitors.cs
- RoleService.cs
- DataGridColumnHeaderAutomationPeer.cs
- ClaimComparer.cs
- CodeParameterDeclarationExpression.cs
- DependencyPropertyKey.cs
- DataTemplateKey.cs