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
- CodeObject.cs
- NavigationProperty.cs
- GC.cs
- StoreContentChangedEventArgs.cs
- IPEndPointCollection.cs
- SpotLight.cs
- PrinterSettings.cs
- JsonEncodingStreamWrapper.cs
- Span.cs
- ElementNotEnabledException.cs
- base64Transforms.cs
- CalendarItem.cs
- MsmqBindingMonitor.cs
- ObjectHandle.cs
- TaiwanLunisolarCalendar.cs
- NamedPipeProcessProtocolHandler.cs
- WinCategoryAttribute.cs
- ProcessProtocolHandler.cs
- BamlLocalizationDictionary.cs
- Interlocked.cs
- ClientCultureInfo.cs
- XmlNullResolver.cs
- CodeAttachEventStatement.cs
- ResourcePart.cs
- DBConnection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- X500Name.cs
- DesignerSerializerAttribute.cs
- EUCJPEncoding.cs
- OLEDB_Enum.cs
- querybuilder.cs
- ConfigXmlAttribute.cs
- GlyphsSerializer.cs
- util.cs
- DiagnosticsConfiguration.cs
- CodeObject.cs
- WebResourceUtil.cs
- CryptoApi.cs
- Point3DConverter.cs
- followingquery.cs
- Form.cs
- DbSourceParameterCollection.cs
- QuaternionKeyFrameCollection.cs
- LoadedOrUnloadedOperation.cs
- Attributes.cs
- CustomServiceCredentials.cs
- FunctionParameter.cs
- GeometryCollection.cs
- DataGridView.cs
- HttpFileCollection.cs
- QueryRewriter.cs
- counter.cs
- AnnotationComponentManager.cs
- StateValidator.cs
- ReadOnlyDictionary.cs
- DefaultAssemblyResolver.cs
- CrossAppDomainChannel.cs
- UnsafeNativeMethods.cs
- ResourceAssociationTypeEnd.cs
- Soap.cs
- TextElementEnumerator.cs
- ListSourceHelper.cs
- TransformPatternIdentifiers.cs
- ProcessModule.cs
- CodeAssignStatement.cs
- UrlMappingsSection.cs
- InputProcessorProfilesLoader.cs
- RubberbandSelector.cs
- PathFigureCollectionConverter.cs
- MulticastOption.cs
- CombinedGeometry.cs
- Buffer.cs
- ClientConfigurationHost.cs
- WizardPanel.cs
- SHA256Cng.cs
- XmlUnspecifiedAttribute.cs
- DefaultBindingPropertyAttribute.cs
- SqlTrackingService.cs
- ClientSettingsStore.cs
- SequentialWorkflowRootDesigner.cs
- SHA256.cs
- SHA384Managed.cs
- BuildProvider.cs
- RequestChannelBinder.cs
- SpellerError.cs
- IconConverter.cs
- SqlIdentifier.cs
- ColorConvertedBitmapExtension.cs
- SocketPermission.cs
- ToolStripPanelCell.cs
- ExpandoClass.cs
- HttpCapabilitiesEvaluator.cs
- HttpPostClientProtocol.cs
- Matrix.cs
- DataSourceXmlClassAttribute.cs
- SoapCodeExporter.cs
- ReferencedAssembly.cs
- TypeForwardedToAttribute.cs
- PartialArray.cs
- DataObjectPastingEventArgs.cs