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
- ImageInfo.cs
- Error.cs
- RequestNavigateEventArgs.cs
- CardSpaceException.cs
- SiteMapPath.cs
- TransformerInfo.cs
- SqlServices.cs
- ObjectDataSourceFilteringEventArgs.cs
- CallTemplateAction.cs
- TextViewSelectionProcessor.cs
- TextSelectionHighlightLayer.cs
- ProjectionNode.cs
- SqlCacheDependencySection.cs
- IInstanceTable.cs
- SelectionPattern.cs
- DuplicateMessageDetector.cs
- recordstatescratchpad.cs
- DataGridViewElement.cs
- StoreContentChangedEventArgs.cs
- LocalizedNameDescriptionPair.cs
- AutomationInteropProvider.cs
- Roles.cs
- DataGridViewSortCompareEventArgs.cs
- Lookup.cs
- DecoderFallback.cs
- SerializationEventsCache.cs
- SamlAuthorizationDecisionClaimResource.cs
- ValidatedControlConverter.cs
- PngBitmapEncoder.cs
- Int32Rect.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SEHException.cs
- HandlerBase.cs
- HttpPostServerProtocol.cs
- PropertyCondition.cs
- NullableDecimalMinMaxAggregationOperator.cs
- SocketInformation.cs
- XmlObjectSerializerReadContextComplex.cs
- KeyGestureValueSerializer.cs
- NamespaceInfo.cs
- ScrollItemProviderWrapper.cs
- ProviderSettingsCollection.cs
- querybuilder.cs
- TreeWalker.cs
- ThrowOnMultipleAssignment.cs
- XmlLoader.cs
- CachedTypeface.cs
- HostedBindingBehavior.cs
- FilePrompt.cs
- DataObjectCopyingEventArgs.cs
- EventMappingSettingsCollection.cs
- TableProviderWrapper.cs
- VerificationException.cs
- ActivityExecutionContextCollection.cs
- _AuthenticationState.cs
- BooleanSwitch.cs
- NameSpaceEvent.cs
- Size3DValueSerializer.cs
- InstanceDataCollection.cs
- WindowsEditBox.cs
- CriticalHandle.cs
- TypeSystem.cs
- X509UI.cs
- SmiXetterAccessMap.cs
- Composition.cs
- Types.cs
- GridViewAutomationPeer.cs
- XmlSchemaElement.cs
- ToolTipAutomationPeer.cs
- SoundPlayer.cs
- AddInActivator.cs
- SourceFilter.cs
- SeverityFilter.cs
- WebPartConnectionsCancelEventArgs.cs
- ObjectSet.cs
- GridViewHeaderRowPresenter.cs
- wgx_sdk_version.cs
- TextRange.cs
- ValidatorUtils.cs
- XmlSchemaSimpleType.cs
- DbParameterCollection.cs
- ObjectDataSourceView.cs
- DefinitionBase.cs
- LookupNode.cs
- followingsibling.cs
- ImageDrawing.cs
- Panel.cs
- StoreItemCollection.Loader.cs
- DataRowView.cs
- XmlTextAttribute.cs
- Size.cs
- WebServiceHandler.cs
- COM2TypeInfoProcessor.cs
- DataGridTextBox.cs
- Psha1DerivedKeyGenerator.cs
- AdPostCacheSubstitution.cs
- Environment.cs
- StringArrayConverter.cs
- AttributeCollection.cs
- ReferenceTypeElement.cs