Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EntityEntry.cs
- FormViewUpdateEventArgs.cs
- WsdlServiceChannelBuilder.cs
- SmiContextFactory.cs
- FixedSOMPageElement.cs
- UpdateManifestForBrowserApplication.cs
- HostExecutionContextManager.cs
- GroupItem.cs
- ButtonStandardAdapter.cs
- Delegate.cs
- TypeBuilderInstantiation.cs
- AssemblyAssociatedContentFileAttribute.cs
- SpoolingTaskBase.cs
- SymmetricCryptoHandle.cs
- EntityContainerEmitter.cs
- Types.cs
- AlignmentXValidation.cs
- NameValuePermission.cs
- Vector3D.cs
- GroupBox.cs
- SelectionBorderGlyph.cs
- XmlSerializerAssemblyAttribute.cs
- Bold.cs
- RegexBoyerMoore.cs
- NameValueConfigurationElement.cs
- DataControlImageButton.cs
- ProfileService.cs
- HttpAsyncResult.cs
- ClassData.cs
- CustomCategoryAttribute.cs
- OwnerDrawPropertyBag.cs
- OrderByBuilder.cs
- ImageConverter.cs
- XslTransform.cs
- WebRequest.cs
- NetNamedPipeSecurityElement.cs
- Compiler.cs
- AnnouncementInnerClient11.cs
- BuilderInfo.cs
- Closure.cs
- SByteConverter.cs
- InvalidateEvent.cs
- PermissionAttributes.cs
- EventNotify.cs
- HttpRequest.cs
- IxmlLineInfo.cs
- SoapUnknownHeader.cs
- DeploymentExceptionMapper.cs
- AuthorizationRule.cs
- ColorBlend.cs
- SecurityContext.cs
- DetailsViewInsertEventArgs.cs
- SrgsDocument.cs
- UiaCoreTypesApi.cs
- RadialGradientBrush.cs
- MeasureData.cs
- QuaternionAnimationBase.cs
- COM2Properties.cs
- RegexWorker.cs
- AlignmentXValidation.cs
- NamespaceMapping.cs
- DataGridComponentEditor.cs
- ObjectDataSourceFilteringEventArgs.cs
- TimeZone.cs
- Ref.cs
- CompositeDesignerAccessibleObject.cs
- ScriptingWebServicesSectionGroup.cs
- RawStylusInputCustomDataList.cs
- BuilderPropertyEntry.cs
- ParallelQuery.cs
- oledbconnectionstring.cs
- SymbolEqualComparer.cs
- DecoderFallback.cs
- Fx.cs
- SupportingTokenAuthenticatorSpecification.cs
- PermissionAttributes.cs
- DetailsViewDeletedEventArgs.cs
- ConditionValidator.cs
- HtmlWindowCollection.cs
- ColorConverter.cs
- NamedPermissionSet.cs
- CommandLineParser.cs
- StringReader.cs
- RightNameExpirationInfoPair.cs
- OutputCacheModule.cs
- InputBindingCollection.cs
- DynamicRouteExpression.cs
- Msec.cs
- TogglePatternIdentifiers.cs
- CodePropertyReferenceExpression.cs
- FileSystemEventArgs.cs
- XmlBaseWriter.cs
- ETagAttribute.cs
- EnlistmentTraceIdentifier.cs
- BoolExpr.cs
- ImageBrush.cs
- PatternMatchRules.cs
- NativeMethods.cs
- ListBoxItemWrapperAutomationPeer.cs
- TagMapInfo.cs