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
- ProcessModelSection.cs
- CompositeClientFormatter.cs
- PageRequestManager.cs
- WebPartConnectionsEventArgs.cs
- ValidateNames.cs
- WebResourceUtil.cs
- PageHandlerFactory.cs
- SqlUtils.cs
- DependencyPropertyDescriptor.cs
- CrossAppDomainChannel.cs
- LocalFileSettingsProvider.cs
- DataGridCellAutomationPeer.cs
- AllMembershipCondition.cs
- Rect.cs
- CodeAttributeArgument.cs
- CustomErrorsSectionWrapper.cs
- InlinedAggregationOperator.cs
- SmtpMail.cs
- RoleManagerSection.cs
- PeerApplication.cs
- X509Utils.cs
- URLMembershipCondition.cs
- SHA384Cng.cs
- HwndSourceParameters.cs
- PairComparer.cs
- LocalClientSecuritySettingsElement.cs
- SID.cs
- DataGridViewUtilities.cs
- DataViewListener.cs
- SystemNetworkInterface.cs
- CodeTypeReferenceCollection.cs
- VectorCollectionConverter.cs
- PreservationFileReader.cs
- GreenMethods.cs
- MulticastOption.cs
- SelectionRange.cs
- SqlParameter.cs
- SystemWebSectionGroup.cs
- IfJoinedCondition.cs
- DateTimePicker.cs
- FrameworkElementFactory.cs
- ApplicationSecurityInfo.cs
- ParameterCollectionEditorForm.cs
- Transform3DGroup.cs
- ExceptionNotification.cs
- InfoCardBaseException.cs
- FontFaceLayoutInfo.cs
- TextBoxAutoCompleteSourceConverter.cs
- PopupRootAutomationPeer.cs
- PixelFormatConverter.cs
- BreakSafeBase.cs
- ValueQuery.cs
- EdmValidator.cs
- DbMetaDataColumnNames.cs
- IntSecurity.cs
- DetailsViewDeleteEventArgs.cs
- RemotingConfigParser.cs
- EndPoint.cs
- InkCanvas.cs
- SettingsSection.cs
- BaseTemplateParser.cs
- CompilerTypeWithParams.cs
- TimeIntervalCollection.cs
- ComplexLine.cs
- CreatingCookieEventArgs.cs
- VariableElement.cs
- PolicyValidationException.cs
- PropertyMetadata.cs
- StatusBar.cs
- ControlValuePropertyAttribute.cs
- TextEditorCopyPaste.cs
- AssemblyUtil.cs
- EtwTrackingParticipant.cs
- safesecurityhelperavalon.cs
- ParserHooks.cs
- UnconditionalPolicy.cs
- PocoEntityKeyStrategy.cs
- MultiSelectRootGridEntry.cs
- SmtpClient.cs
- X509ThumbprintKeyIdentifierClause.cs
- Viewport3DAutomationPeer.cs
- ScriptResourceAttribute.cs
- RegistrationServices.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MapPathBasedVirtualPathProvider.cs
- DiscoveryEndpoint.cs
- ConfigsHelper.cs
- StatusBarAutomationPeer.cs
- Globals.cs
- Menu.cs
- SafeNativeMethods.cs
- XmlNamedNodeMap.cs
- CodeRemoveEventStatement.cs
- Variable.cs
- QilGeneratorEnv.cs
- SequentialWorkflowRootDesigner.cs
- WebBrowserDesigner.cs
- DetailsViewUpdateEventArgs.cs
- RevocationPoint.cs
- CriticalHandle.cs