Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HighlightVisual.cs
- IdentityModelDictionary.cs
- InstanceLockQueryResult.cs
- DocumentPageTextView.cs
- FormattedText.cs
- EFAssociationProvider.cs
- CompilationSection.cs
- PromptBuilder.cs
- ECDiffieHellmanCngPublicKey.cs
- HtmlShim.cs
- JsonByteArrayDataContract.cs
- X509CertificateStore.cs
- SelectionChangedEventArgs.cs
- Pkcs7Recipient.cs
- SqlFunctionAttribute.cs
- CreateUserErrorEventArgs.cs
- ElementFactory.cs
- ArgIterator.cs
- TextViewSelectionProcessor.cs
- ToolStripSplitStackLayout.cs
- CompiledXpathExpr.cs
- StreamGeometry.cs
- DataSourceViewSchemaConverter.cs
- HttpResponseBase.cs
- InvalidFilterCriteriaException.cs
- DoubleCollection.cs
- NativeActivityContext.cs
- ComponentDispatcher.cs
- cryptoapiTransform.cs
- UserControl.cs
- UpdateExpressionVisitor.cs
- ListViewItemMouseHoverEvent.cs
- AuthenticationService.cs
- TemplatePagerField.cs
- XhtmlBasicCalendarAdapter.cs
- OpCopier.cs
- TextTreeExtractElementUndoUnit.cs
- ToolboxComponentsCreatingEventArgs.cs
- AdornerHitTestResult.cs
- XmlMtomReader.cs
- Events.cs
- PrimitiveSchema.cs
- IPCCacheManager.cs
- DesigntimeLicenseContext.cs
- PathFigureCollection.cs
- Clipboard.cs
- SafeCertificateStore.cs
- CustomAttributeFormatException.cs
- SqlCacheDependencySection.cs
- RegistryConfigurationProvider.cs
- SqlCacheDependency.cs
- ToolboxItemAttribute.cs
- ComboBox.cs
- MimePart.cs
- AmbientLight.cs
- Rect.cs
- ThreadNeutralSemaphore.cs
- DependencyProperty.cs
- DispatcherHooks.cs
- TextDecorations.cs
- WindowsSlider.cs
- Maps.cs
- SByte.cs
- ListViewTableCell.cs
- GPStream.cs
- PenLineCapValidation.cs
- SkewTransform.cs
- metadatamappinghashervisitor.cs
- AnimationTimeline.cs
- CustomErrorsSection.cs
- CornerRadius.cs
- FileDetails.cs
- ServiceEndpointAssociationProvider.cs
- XmlSerializerSection.cs
- versioninfo.cs
- SafePEFileHandle.cs
- DetectEofStream.cs
- EmptyEnumerable.cs
- RC2.cs
- ConnectionPoolManager.cs
- TrustManagerPromptUI.cs
- EmptyControlCollection.cs
- HelpEvent.cs
- ToolboxDataAttribute.cs
- RadioButton.cs
- SiteMapNodeItem.cs
- PropertyChangingEventArgs.cs
- ColorInterpolationModeValidation.cs
- DodSequenceMerge.cs
- EditorPartCollection.cs
- EntitySetRetriever.cs
- DesignerObject.cs
- RangeBaseAutomationPeer.cs
- ApplicationInfo.cs
- SystemIPGlobalStatistics.cs
- GrabHandleGlyph.cs
- ToolStripStatusLabel.cs
- FailedToStartupUIException.cs
- PolicyValidationException.cs
- TypeUsage.cs