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
- GetWinFXPath.cs
- LineServicesRun.cs
- PropertyValidationContext.cs
- FileChangeNotifier.cs
- XmlDataDocument.cs
- BaseProcessor.cs
- ItemContainerGenerator.cs
- XmlElementAttributes.cs
- BitmapEffectGroup.cs
- SingleObjectCollection.cs
- SoapAttributeOverrides.cs
- XsltFunctions.cs
- MobileCapabilities.cs
- JavaScriptString.cs
- AssemblyCollection.cs
- MediaTimeline.cs
- EncoderParameter.cs
- ResourceIDHelper.cs
- FileUtil.cs
- ToolBar.cs
- DataGridLinkButton.cs
- Vector3DCollectionValueSerializer.cs
- VisualTarget.cs
- ConstraintConverter.cs
- Journaling.cs
- WebPartConnection.cs
- DataObjectFieldAttribute.cs
- XmlComplianceUtil.cs
- MeasureData.cs
- DataGridComboBoxColumn.cs
- MatrixStack.cs
- IdentityReference.cs
- StorageTypeMapping.cs
- DefaultParameterValueAttribute.cs
- Visual.cs
- _ListenerResponseStream.cs
- Utils.cs
- ConnectorDragDropGlyph.cs
- odbcmetadatacollectionnames.cs
- CodeRemoveEventStatement.cs
- CompatibleIComparer.cs
- SynchronizedDispatch.cs
- IODescriptionAttribute.cs
- ActivitiesCollection.cs
- PeerApplicationLaunchInfo.cs
- DataBindingExpressionBuilder.cs
- PeerApplication.cs
- TableLayoutPanelCellPosition.cs
- ProfileService.cs
- SqlGenericUtil.cs
- DynamicActionMessageFilter.cs
- FactoryGenerator.cs
- ApplicationFileParser.cs
- PartialArray.cs
- sqlcontext.cs
- ApplicationException.cs
- HttpWriter.cs
- _NTAuthentication.cs
- FilterUserControlBase.cs
- DomainLiteralReader.cs
- WebConfigurationHostFileChange.cs
- TraceHandler.cs
- log.cs
- _NativeSSPI.cs
- DbCommandDefinition.cs
- ContextMenuService.cs
- ApplicationInterop.cs
- XPathNavigator.cs
- XmlQualifiedName.cs
- CanonicalFormWriter.cs
- DbReferenceCollection.cs
- FormattedTextSymbols.cs
- RequestTimeoutManager.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HttpException.cs
- Point4D.cs
- EntityContainerEmitter.cs
- PageSetupDialog.cs
- RowToParametersTransformer.cs
- JournalEntryListConverter.cs
- AuthenticatingEventArgs.cs
- cryptoapiTransform.cs
- SuppressMessageAttribute.cs
- GreenMethods.cs
- DBPropSet.cs
- RadialGradientBrush.cs
- MatrixKeyFrameCollection.cs
- DesignerValidationSummaryAdapter.cs
- PropertyMetadata.cs
- DecoderExceptionFallback.cs
- ReadContentAsBinaryHelper.cs
- CollectionViewGroup.cs
- StructuredType.cs
- RectKeyFrameCollection.cs
- UnsafeNativeMethods.cs
- RectAnimation.cs
- CloseCryptoHandleRequest.cs
- SignedXml.cs
- AbstractSvcMapFileLoader.cs
- DateBoldEvent.cs