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
- TailPinnedEventArgs.cs
- exports.cs
- MarkupExtensionReturnTypeAttribute.cs
- ServicePoint.cs
- MenuTracker.cs
- XhtmlBasicPageAdapter.cs
- DelegatingHeader.cs
- Debug.cs
- ClientSettingsSection.cs
- ArraySortHelper.cs
- SimpleBitVector32.cs
- ArgIterator.cs
- TextModifier.cs
- UIElementPropertyUndoUnit.cs
- XmlAttributeCache.cs
- ResourcesBuildProvider.cs
- SupportsEventValidationAttribute.cs
- LineServicesRun.cs
- IResourceProvider.cs
- TextLineResult.cs
- PageCodeDomTreeGenerator.cs
- ApplicationFileCodeDomTreeGenerator.cs
- GAC.cs
- DbQueryCommandTree.cs
- GeometryConverter.cs
- SmtpClient.cs
- SecurityAppliedMessage.cs
- PenLineJoinValidation.cs
- ServerIdentity.cs
- UnauthorizedAccessException.cs
- PageCatalogPartDesigner.cs
- SettingsSection.cs
- SymbolType.cs
- SHA256.cs
- AnonymousIdentificationModule.cs
- Accessible.cs
- Separator.cs
- KeysConverter.cs
- LicFileLicenseProvider.cs
- DoubleIndependentAnimationStorage.cs
- ReadOnlyMetadataCollection.cs
- ResourcePart.cs
- FormCollection.cs
- WebPartChrome.cs
- RemotingHelper.cs
- CopyAttributesAction.cs
- RijndaelManaged.cs
- PixelShader.cs
- PictureBox.cs
- Sequence.cs
- XmlText.cs
- IsolatedStoragePermission.cs
- ZipPackagePart.cs
- RowUpdatedEventArgs.cs
- XmlNodeReader.cs
- TransactionValidationBehavior.cs
- InputElement.cs
- ApplicationActivator.cs
- Int32CAMarshaler.cs
- SerialErrors.cs
- EventKeyword.cs
- ZipIOLocalFileBlock.cs
- StylusOverProperty.cs
- MouseActionConverter.cs
- assemblycache.cs
- WorkflowElementDialog.cs
- PageThemeParser.cs
- DynamicPropertyHolder.cs
- GenericTypeParameterBuilder.cs
- XamlInterfaces.cs
- CodeValidator.cs
- ApplicationActivator.cs
- ping.cs
- cookie.cs
- CompilerInfo.cs
- CqlParser.cs
- NonBatchDirectoryCompiler.cs
- BridgeDataRecord.cs
- PolicyConversionContext.cs
- VersionPair.cs
- HierarchicalDataSourceControl.cs
- AccessibleObject.cs
- DataViewManager.cs
- ContainerUtilities.cs
- XDRSchema.cs
- DashStyle.cs
- BinaryFormatterSinks.cs
- TreeIterators.cs
- X509Certificate2Collection.cs
- XmlSchemaGroupRef.cs
- CommandID.cs
- FacetEnabledSchemaElement.cs
- SspiSafeHandles.cs
- Processor.cs
- ImportCatalogPart.cs
- BatchParser.cs
- CompositeClientFormatter.cs
- Clock.cs
- CodeGenerator.cs
- WSFederationHttpSecurityMode.cs