Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RayMeshGeometry3DHitTestResult.cs
- COAUTHINFO.cs
- DataControlFieldCell.cs
- ConvertersCollection.cs
- TdsParser.cs
- SymmetricAlgorithm.cs
- ConnectorDragDropGlyph.cs
- Window.cs
- ActionItem.cs
- Transactions.cs
- PageHandlerFactory.cs
- X509CertificateChain.cs
- ValidatingReaderNodeData.cs
- HasCopySemanticsAttribute.cs
- HttpCookiesSection.cs
- MatrixValueSerializer.cs
- ExpressionCopier.cs
- TabControlDesigner.cs
- VirtualDirectoryMapping.cs
- CommandID.cs
- DataServiceRequestOfT.cs
- NoResizeSelectionBorderGlyph.cs
- PropertySegmentSerializer.cs
- FamilyTypefaceCollection.cs
- WindowsFormsHostAutomationPeer.cs
- TableRowCollection.cs
- ADConnectionHelper.cs
- WaitForChangedResult.cs
- CompensatableTransactionScopeActivity.cs
- TripleDESCryptoServiceProvider.cs
- ScriptingSectionGroup.cs
- Parser.cs
- HttpCookieCollection.cs
- FrameworkTemplate.cs
- Errors.cs
- DataSourceCacheDurationConverter.cs
- ResourceReader.cs
- DateTimeConverter.cs
- HttpWebRequestElement.cs
- SqlDataSourceAdvancedOptionsForm.cs
- RNGCryptoServiceProvider.cs
- FixedElement.cs
- ExtentKey.cs
- ClusterRegistryConfigurationProvider.cs
- XmlSchemaAnyAttribute.cs
- ToolStripProgressBar.cs
- TemplateKeyConverter.cs
- SecurityRequiresReviewAttribute.cs
- BasePropertyDescriptor.cs
- HttpProtocolReflector.cs
- PolyLineSegmentFigureLogic.cs
- ResourcePool.cs
- HashCodeCombiner.cs
- DllNotFoundException.cs
- Win32Native.cs
- CompilerInfo.cs
- InitializeCorrelation.cs
- IxmlLineInfo.cs
- QueryPageSettingsEventArgs.cs
- GraphicsPath.cs
- DispatchOperation.cs
- AppearanceEditorPart.cs
- OutputCacheProviderCollection.cs
- SiteMapNodeItem.cs
- LinearGradientBrush.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ColorConvertedBitmap.cs
- TypeReference.cs
- ComponentChangedEvent.cs
- CodeMemberProperty.cs
- SmiMetaData.cs
- GridViewEditEventArgs.cs
- LineProperties.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- EntityDataSourceQueryBuilder.cs
- WebAdminConfigurationHelper.cs
- ImageMetadata.cs
- ManagedWndProcTracker.cs
- DictionaryChange.cs
- EdmPropertyAttribute.cs
- DPTypeDescriptorContext.cs
- OleDbConnectionFactory.cs
- Trace.cs
- SocketPermission.cs
- CollectionConverter.cs
- RemotingException.cs
- CodeIdentifier.cs
- ServiceSecurityAuditElement.cs
- PersistenceTypeAttribute.cs
- OracleInfoMessageEventArgs.cs
- MouseGestureValueSerializer.cs
- DataColumnSelectionConverter.cs
- Thickness.cs
- TransactedBatchContext.cs
- DSASignatureDeformatter.cs
- XmlSchemaAttributeGroup.cs
- RangeValueProviderWrapper.cs
- DataGridViewCellLinkedList.cs
- SelectionWordBreaker.cs
- UIAgentMonitor.cs