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
- ResourceDisplayNameAttribute.cs
- xsdvalidator.cs
- ParameterSubsegment.cs
- SystemWebCachingSectionGroup.cs
- ClockController.cs
- infer.cs
- FlowPanelDesigner.cs
- XmlAttribute.cs
- __Error.cs
- BinaryReader.cs
- RawStylusInputCustomData.cs
- FrameworkContentElement.cs
- EmptyReadOnlyDictionaryInternal.cs
- Paragraph.cs
- ParserHooks.cs
- SocketAddress.cs
- NavigateEvent.cs
- DataGridRelationshipRow.cs
- SafeCancelMibChangeNotify.cs
- RecognizedWordUnit.cs
- xdrvalidator.cs
- ComEventsInfo.cs
- SqlFormatter.cs
- SpecularMaterial.cs
- WebPartChrome.cs
- EventSetterHandlerConverter.cs
- SqlServices.cs
- HighContrastHelper.cs
- Type.cs
- ZipIORawDataFileBlock.cs
- FixedSOMTableRow.cs
- CriticalFinalizerObject.cs
- AttachedPropertyBrowsableAttribute.cs
- ImageCodecInfo.cs
- SessionEndingCancelEventArgs.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- ProfilePropertyMetadata.cs
- PointConverter.cs
- XPathNode.cs
- MsdtcClusterUtils.cs
- sqlnorm.cs
- IdentifierElement.cs
- StackBuilderSink.cs
- PointAnimation.cs
- GradientBrush.cs
- WebPartZoneBase.cs
- EntityDataSourceContainerNameItem.cs
- AnonymousIdentificationSection.cs
- ClientSideQueueItem.cs
- IImplicitResourceProvider.cs
- ValidationHelpers.cs
- ImplicitInputBrush.cs
- BaseCollection.cs
- ToolStripGrip.cs
- CodeSnippetStatement.cs
- CommonRemoteMemoryBlock.cs
- HttpListenerPrefixCollection.cs
- PageBreakRecord.cs
- PolicyManager.cs
- XmlTextWriter.cs
- ListViewInsertedEventArgs.cs
- XmlSchemaElement.cs
- DynamicValueConverter.cs
- BuildDependencySet.cs
- SkipStoryboardToFill.cs
- XmlQuerySequence.cs
- UdpDiscoveryEndpointElement.cs
- IisTraceListener.cs
- DoubleKeyFrameCollection.cs
- Positioning.cs
- SmiMetaDataProperty.cs
- DocumentPage.cs
- QueryStringParameter.cs
- PartitionedStream.cs
- BreakSafeBase.cs
- C14NUtil.cs
- BamlBinaryReader.cs
- SqlCacheDependency.cs
- Icon.cs
- FlowLayout.cs
- EntityCommandCompilationException.cs
- CharacterString.cs
- DesignerOptionService.cs
- ListControlBoundActionList.cs
- IdnElement.cs
- BlurBitmapEffect.cs
- VerificationAttribute.cs
- SkewTransform.cs
- ASCIIEncoding.cs
- FlowDocumentScrollViewer.cs
- BuildProvidersCompiler.cs
- InstanceLockLostException.cs
- Size.cs
- ReadWriteSpinLock.cs
- DbProviderFactory.cs
- OrthographicCamera.cs
- TextElementCollectionHelper.cs
- ProfileSettingsCollection.cs
- WindowsRichEditRange.cs
- DelegatingTypeDescriptionProvider.cs