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
- Queue.cs
- ButtonChrome.cs
- TableSectionStyle.cs
- OleDbError.cs
- CqlBlock.cs
- XmlDataSourceView.cs
- CoTaskMemSafeHandle.cs
- ListViewDataItem.cs
- FormViewCommandEventArgs.cs
- ArrayExtension.cs
- CssStyleCollection.cs
- BaseServiceProvider.cs
- SqlDataReader.cs
- StorageAssociationSetMapping.cs
- FixedSOMLineRanges.cs
- SystemTcpConnection.cs
- XmlSchemaSimpleTypeRestriction.cs
- ColumnReorderedEventArgs.cs
- XmlHelper.cs
- ObjectRef.cs
- CounterCreationDataCollection.cs
- RulePatternOps.cs
- XmlObjectSerializerReadContextComplexJson.cs
- DataGridViewColumnConverter.cs
- ToolStripSplitButton.cs
- PackUriHelper.cs
- DelegatingChannelListener.cs
- VirtualPathUtility.cs
- ProjectionAnalyzer.cs
- GZipStream.cs
- TemplateControlBuildProvider.cs
- BoundingRectTracker.cs
- SecurityAttributeGenerationHelper.cs
- CalendarTable.cs
- documentsequencetextcontainer.cs
- TextMessageEncoder.cs
- PrinterSettings.cs
- ExpressionContext.cs
- WebPartDisplayModeEventArgs.cs
- dsa.cs
- ConfigurationCollectionAttribute.cs
- FileFormatException.cs
- WebServiceMethodData.cs
- StylusTouchDevice.cs
- ZipPackage.cs
- GcHandle.cs
- ZipFileInfo.cs
- ResourceAttributes.cs
- UIElementPropertyUndoUnit.cs
- PowerEase.cs
- SqlDataSourceStatusEventArgs.cs
- CallbackException.cs
- XMLSyntaxException.cs
- CellConstant.cs
- FilterableAttribute.cs
- String.cs
- ErrorHandler.cs
- BezierSegment.cs
- DependencyProperty.cs
- Sentence.cs
- CompilerTypeWithParams.cs
- AnonymousIdentificationSection.cs
- Nullable.cs
- TextBoxRenderer.cs
- NetCodeGroup.cs
- MachineKey.cs
- WebPartEditorApplyVerb.cs
- StreamFormatter.cs
- ListViewTableCell.cs
- GeneralTransformGroup.cs
- ButtonPopupAdapter.cs
- RtfToken.cs
- DesignTimeVisibleAttribute.cs
- WindowsStatusBar.cs
- HierarchicalDataBoundControl.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Control.cs
- WebPartDisplayModeEventArgs.cs
- SingleKeyFrameCollection.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- EncoderExceptionFallback.cs
- Point.cs
- SecurityPolicySection.cs
- Journal.cs
- XmlIncludeAttribute.cs
- QilUnary.cs
- WebHeaderCollection.cs
- WindowsEditBoxRange.cs
- LoginView.cs
- StrongName.cs
- SharedStream.cs
- DictionaryManager.cs
- NameValueCollection.cs
- DbConnectionHelper.cs
- _AutoWebProxyScriptWrapper.cs
- SettingsAttributeDictionary.cs
- WindowsSolidBrush.cs
- SupportsPreviewControlAttribute.cs
- CopyNamespacesAction.cs
- ReachDocumentSequenceSerializer.cs