Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / RegisteredExpandoAttribute.cs / 1305376 / RegisteredExpandoAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Diagnostics; using System.Diagnostics.CodeAnalysis; [ 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; [ 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
- PartialTrustValidationBehavior.cs
- ValueType.cs
- DbMetaDataCollectionNames.cs
- GlobalProxySelection.cs
- Point3DKeyFrameCollection.cs
- InvokeDelegate.cs
- ChangeBlockUndoRecord.cs
- ImportCatalogPart.cs
- ScrollEvent.cs
- WindowCollection.cs
- TaiwanCalendar.cs
- VBCodeProvider.cs
- BitmapCodecInfoInternal.cs
- ClientFormsAuthenticationCredentials.cs
- COAUTHINFO.cs
- DummyDataSource.cs
- BuilderPropertyEntry.cs
- GcHandle.cs
- URLString.cs
- LayoutDump.cs
- SignatureToken.cs
- ProgramNode.cs
- XmlCodeExporter.cs
- CompilerErrorCollection.cs
- XmlQueryContext.cs
- TextEditorTables.cs
- ConfigurationValidatorAttribute.cs
- login.cs
- UriExt.cs
- InvalidAsynchronousStateException.cs
- SafeEventLogWriteHandle.cs
- AsynchronousChannelMergeEnumerator.cs
- XmlSchemaCompilationSettings.cs
- FromRequest.cs
- Win32MouseDevice.cs
- CodeCastExpression.cs
- VersionedStreamOwner.cs
- MergePropertyDescriptor.cs
- TabItem.cs
- ContextBase.cs
- HashAlgorithm.cs
- Char.cs
- COM2PropertyDescriptor.cs
- OutputCacheSettingsSection.cs
- COM2TypeInfoProcessor.cs
- __Error.cs
- GenericUI.cs
- DataGridViewEditingControlShowingEventArgs.cs
- CompatibleComparer.cs
- SynchronizedInputProviderWrapper.cs
- GetChildSubtree.cs
- AjaxFrameworkAssemblyAttribute.cs
- HtmlMeta.cs
- NamespaceMapping.cs
- PageContent.cs
- RequestCacheManager.cs
- ActiveXContainer.cs
- SetUserPreferenceRequest.cs
- XmlIgnoreAttribute.cs
- SizeChangedEventArgs.cs
- ConfigurationConverterBase.cs
- Timer.cs
- TcpSocketManager.cs
- BooleanAnimationBase.cs
- ColumnMapTranslator.cs
- ClientSettingsStore.cs
- EntityAdapter.cs
- CompiledRegexRunnerFactory.cs
- ImageListImageEditor.cs
- FixedSOMFixedBlock.cs
- RangeValuePatternIdentifiers.cs
- behaviorssection.cs
- base64Transforms.cs
- PhysicalAddress.cs
- DataGridTextBox.cs
- HttpModuleCollection.cs
- BulletChrome.cs
- PublisherIdentityPermission.cs
- LabelEditEvent.cs
- InvokeGenerator.cs
- WindowsTitleBar.cs
- QueryReaderSettings.cs
- SQLUtility.cs
- StackOverflowException.cs
- OptionUsage.cs
- ParallelTimeline.cs
- BitStream.cs
- AnnouncementService.cs
- ControlPager.cs
- GlobalizationAssembly.cs
- CodeDesigner.cs
- CheckBoxField.cs
- CompilerState.cs
- ButtonColumn.cs
- SafeEventLogWriteHandle.cs
- TemplateColumn.cs
- XmlUtf8RawTextWriter.cs
- ControlAdapter.cs
- OrderingExpression.cs
- ISFClipboardData.cs