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
- DeflateEmulationStream.cs
- StretchValidation.cs
- QilIterator.cs
- ScriptManager.cs
- XmlFormatExtensionAttribute.cs
- WebPartVerbCollection.cs
- AuthorizationSection.cs
- EventMappingSettings.cs
- HtmlControlPersistable.cs
- InvalidComObjectException.cs
- BuildManager.cs
- OleDbDataReader.cs
- Control.cs
- RSAPKCS1SignatureFormatter.cs
- FormViewUpdateEventArgs.cs
- PlanCompilerUtil.cs
- BindStream.cs
- DrawingImage.cs
- CultureSpecificStringDictionary.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- HttpFileCollection.cs
- SafeFindHandle.cs
- ListViewInsertionMark.cs
- Internal.cs
- XmlTextWriter.cs
- XmlTypeMapping.cs
- RoutedEventArgs.cs
- HiddenField.cs
- ClientBuildManager.cs
- WorkflowIdleBehavior.cs
- PathData.cs
- XmlSchemaComplexType.cs
- DataViewManager.cs
- ActivityStatusChangeEventArgs.cs
- WindowsScrollBar.cs
- XsltFunctions.cs
- SchemaCollectionPreprocessor.cs
- EmptyEnumerator.cs
- ExpressionWriter.cs
- SiteMapNodeItemEventArgs.cs
- MediaElement.cs
- EdmComplexTypeAttribute.cs
- WorkflowServiceInstance.cs
- MenuItemCollection.cs
- ThumbButtonInfo.cs
- ChannelSinkStacks.cs
- XmlHierarchicalEnumerable.cs
- NavigatorInput.cs
- EventListener.cs
- EntityKeyElement.cs
- TdsParserSafeHandles.cs
- Int32Rect.cs
- CreateUserErrorEventArgs.cs
- RuntimeWrappedException.cs
- ToolTipService.cs
- HtmlSelect.cs
- InlineCollection.cs
- Instrumentation.cs
- FormViewPageEventArgs.cs
- XmlILIndex.cs
- BindUriHelper.cs
- AttributeCollection.cs
- StreamWithDictionary.cs
- SchemaTableOptionalColumn.cs
- HitTestWithPointDrawingContextWalker.cs
- ColumnHeader.cs
- DaylightTime.cs
- OracleNumber.cs
- TreeNodeCollection.cs
- XmlWriter.cs
- FamilyTypefaceCollection.cs
- UriTemplatePathSegment.cs
- SqlConnectionPoolProviderInfo.cs
- TextTreeTextBlock.cs
- XmlHierarchicalDataSourceView.cs
- ImageAnimator.cs
- LineServicesRun.cs
- Boolean.cs
- XmlDictionaryString.cs
- ServiceBuildProvider.cs
- ExpressionBuilder.cs
- ToolStripDropDown.cs
- ErrorEventArgs.cs
- MobileTemplatedControlDesigner.cs
- ExceptionUtil.cs
- NumberFormatInfo.cs
- CodeGen.cs
- DataRelationPropertyDescriptor.cs
- Splitter.cs
- IdentifierCreationService.cs
- XPathParser.cs
- DataGridColumnStyleMappingNameEditor.cs
- ClientTargetSection.cs
- StylusPointPropertyInfoDefaults.cs
- DefaultSection.cs
- DynamicUpdateCommand.cs
- SpeakInfo.cs
- ByteStack.cs
- ConfigPathUtility.cs
- diagnosticsswitches.cs