Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- baseaxisquery.cs
- UpdateManifestForBrowserApplication.cs
- ListBindingHelper.cs
- Timer.cs
- HttpCacheVaryByContentEncodings.cs
- TraceContextRecord.cs
- VariableQuery.cs
- Application.cs
- XmlSiteMapProvider.cs
- MailAddressCollection.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DataGridItemEventArgs.cs
- GridViewCommandEventArgs.cs
- MediaCommands.cs
- RuntimeEnvironment.cs
- RegexRunner.cs
- DataGridItemCollection.cs
- MachineKeySection.cs
- TypeConverterValueSerializer.cs
- ValidationResult.cs
- ReadOnlyCollection.cs
- ReturnType.cs
- CngKeyCreationParameters.cs
- EditBehavior.cs
- UserControlBuildProvider.cs
- ImageMap.cs
- NumberFunctions.cs
- GetWinFXPath.cs
- X500Name.cs
- ResourceContainerWrapper.cs
- SystemParameters.cs
- SymLanguageType.cs
- KeyValueInternalCollection.cs
- Camera.cs
- DbConnectionOptions.cs
- MSAAWinEventWrap.cs
- UriExt.cs
- File.cs
- IPEndPointCollection.cs
- JoinCqlBlock.cs
- SortedDictionary.cs
- QualificationDataAttribute.cs
- StructuredType.cs
- EarlyBoundInfo.cs
- _emptywebproxy.cs
- NumericUpDownAcceleration.cs
- MetadataItemEmitter.cs
- BufferBuilder.cs
- ServiceReference.cs
- XPathNavigator.cs
- InstanceCreationEditor.cs
- _TransmitFileOverlappedAsyncResult.cs
- SrgsElementFactory.cs
- X509Utils.cs
- AccessibleObject.cs
- TextParagraphCache.cs
- TrustSection.cs
- PersistenceException.cs
- XmlUtil.cs
- BaseWebProxyFinder.cs
- DocumentGridPage.cs
- InkPresenterAutomationPeer.cs
- MenuItemCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- EnumValidator.cs
- SQLChars.cs
- ProxyHwnd.cs
- OleDbMetaDataFactory.cs
- DefaultPropertyAttribute.cs
- XmlnsDictionary.cs
- BamlStream.cs
- ToolStripButton.cs
- XmlSchemaSimpleType.cs
- SequenceRange.cs
- ScrollData.cs
- SettingsPropertyNotFoundException.cs
- SSmlParser.cs
- ChangesetResponse.cs
- SessionEndingEventArgs.cs
- AsyncOperationLifetimeManager.cs
- CreatingCookieEventArgs.cs
- SafeArrayRankMismatchException.cs
- StrongBox.cs
- Helpers.cs
- SizeConverter.cs
- CqlLexerHelpers.cs
- ToolStripMenuItem.cs
- JsonDeserializer.cs
- PointLight.cs
- InstanceDescriptor.cs
- PolicyLevel.cs
- TypeSemantics.cs
- MetaType.cs
- GroupBox.cs
- ControlPropertyNameConverter.cs
- SQLGuidStorage.cs
- Rotation3D.cs
- HierarchicalDataBoundControlAdapter.cs
- CodeNamespaceImportCollection.cs
- EventRoute.cs