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
- RawStylusInput.cs
- Error.cs
- DefaultTraceListener.cs
- DrawItemEvent.cs
- SystemDiagnosticsSection.cs
- RouteItem.cs
- XhtmlTextWriter.cs
- HttpCacheVary.cs
- ByteConverter.cs
- DocumentViewerBase.cs
- MouseEvent.cs
- SystemInformation.cs
- WsdlHelpGeneratorElement.cs
- ListViewInsertionMark.cs
- UnsafeNativeMethods.cs
- XmlObjectSerializerWriteContext.cs
- TextOptions.cs
- RuntimeWrappedException.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlUtilWriter.cs
- ErrorHandler.cs
- EditorZoneBase.cs
- HasCopySemanticsAttribute.cs
- SQLInt16Storage.cs
- Header.cs
- VectorCollection.cs
- MetadataSource.cs
- DbXmlEnabledProviderManifest.cs
- _Rfc2616CacheValidators.cs
- TypeConverterHelper.cs
- MemberMaps.cs
- DispatchOperationRuntime.cs
- EventLogRecord.cs
- TextRangeEdit.cs
- Events.cs
- GridViewPageEventArgs.cs
- DashStyle.cs
- CqlIdentifiers.cs
- FlowDocumentReaderAutomationPeer.cs
- bidPrivateBase.cs
- DBParameter.cs
- SelectionService.cs
- ParentControlDesigner.cs
- _RegBlobWebProxyDataBuilder.cs
- QueryCacheKey.cs
- HMACSHA512.cs
- EdmComplexPropertyAttribute.cs
- ProcessManager.cs
- ActivationArguments.cs
- HashHelper.cs
- EncoderReplacementFallback.cs
- TitleStyle.cs
- GatewayDefinition.cs
- CompositeDataBoundControl.cs
- ContainerParaClient.cs
- GridSplitter.cs
- StorageComplexPropertyMapping.cs
- SettingsContext.cs
- AbandonedMutexException.cs
- ClassHandlersStore.cs
- ProvidePropertyAttribute.cs
- ArglessEventHandlerProxy.cs
- SqlPersonalizationProvider.cs
- WebScriptServiceHostFactory.cs
- XPathNavigator.cs
- ParenthesizePropertyNameAttribute.cs
- DrawingGroup.cs
- PageContent.cs
- Unit.cs
- StringSource.cs
- DataGrid.cs
- DataKeyCollection.cs
- VisualBasicHelper.cs
- ProtectedConfiguration.cs
- ExpressionBuilderCollection.cs
- WarningException.cs
- WebHttpDispatchOperationSelector.cs
- UidManager.cs
- EventLogQuery.cs
- ControlAdapter.cs
- EntityConnectionStringBuilder.cs
- XmlAnyElementAttributes.cs
- StreamHelper.cs
- WebRequestModuleElementCollection.cs
- TabPage.cs
- BitVec.cs
- StringFreezingAttribute.cs
- StyleXamlTreeBuilder.cs
- CommonRemoteMemoryBlock.cs
- StatusBar.cs
- regiisutil.cs
- WebPartMenu.cs
- DataPagerFieldItem.cs
- PeerCredentialElement.cs
- StorageScalarPropertyMapping.cs
- Error.cs
- FunctionNode.cs
- TypeKeyValue.cs
- XmlSchemaComplexContentExtension.cs
- brushes.cs