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
- SmtpFailedRecipientException.cs
- WebUtil.cs
- ToolStripSettings.cs
- KeyValueConfigurationCollection.cs
- SqlPersonalizationProvider.cs
- ISAPIWorkerRequest.cs
- CqlWriter.cs
- WaitForChangedResult.cs
- TextRunProperties.cs
- ResumeStoryboard.cs
- LineBreak.cs
- PriorityQueue.cs
- SafeNativeMethodsCLR.cs
- CodeRemoveEventStatement.cs
- VisualTarget.cs
- CompilationRelaxations.cs
- TypeDelegator.cs
- FontInfo.cs
- IgnoreFileBuildProvider.cs
- ExtentKey.cs
- MetadataSerializer.cs
- XmlILOptimizerVisitor.cs
- CommandBinding.cs
- AuthorizationRule.cs
- GiveFeedbackEventArgs.cs
- MulticastDelegate.cs
- JsonWriter.cs
- SmtpReplyReaderFactory.cs
- PackWebRequest.cs
- TreeView.cs
- TreeViewImageIndexConverter.cs
- XmlSchemaType.cs
- _ChunkParse.cs
- DataSourceControlBuilder.cs
- SqlBooleanizer.cs
- ReadOnlyCollection.cs
- OptionUsage.cs
- MdiWindowListItemConverter.cs
- ButtonFieldBase.cs
- BitmapEffectInput.cs
- TypeBuilder.cs
- FrameworkReadOnlyPropertyMetadata.cs
- AppDomain.cs
- ServiceDescription.cs
- HMACSHA1.cs
- TransactionScopeDesigner.cs
- UrlMapping.cs
- DescendantOverDescendantQuery.cs
- ProviderConnectionPointCollection.cs
- SQLDateTimeStorage.cs
- RouteValueExpressionBuilder.cs
- BindStream.cs
- DataGridViewRowCancelEventArgs.cs
- BitmapCache.cs
- TextMarkerSource.cs
- WMIGenerator.cs
- ExpressionBuilder.cs
- IConvertible.cs
- ImageBrush.cs
- StringHelper.cs
- BrowserCapabilitiesFactoryBase.cs
- ShutDownListener.cs
- ChangeBlockUndoRecord.cs
- Compensate.cs
- ContextInformation.cs
- SoapCommonClasses.cs
- WebBrowserNavigatingEventHandler.cs
- SmiGettersStream.cs
- PenThreadPool.cs
- HwndHostAutomationPeer.cs
- SiteOfOriginContainer.cs
- WindowsAltTab.cs
- LocationUpdates.cs
- Part.cs
- DragDeltaEventArgs.cs
- DescendantQuery.cs
- Options.cs
- CellTreeNode.cs
- TypeSource.cs
- SecurityException.cs
- Comparer.cs
- UTF32Encoding.cs
- RegexWriter.cs
- HatchBrush.cs
- ToolStripManager.cs
- ResourceFallbackManager.cs
- Light.cs
- Point3DConverter.cs
- SecurityCriticalDataForSet.cs
- TCPListener.cs
- CodeMemberField.cs
- PrimitiveXmlSerializers.cs
- CriticalFinalizerObject.cs
- MessageDecoder.cs
- Scene3D.cs
- WebWorkflowRole.cs
- ListBoxAutomationPeer.cs
- Image.cs
- Point.cs
- ObjectContext.cs