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
- DataGridCaption.cs
- WebPartCollection.cs
- SchemaCollectionCompiler.cs
- CodeTypeMember.cs
- Pointer.cs
- ContentFileHelper.cs
- IISUnsafeMethods.cs
- TransactionProtocol.cs
- IpcClientChannel.cs
- DigitalSignatureProvider.cs
- GrammarBuilderRuleRef.cs
- HttpAsyncResult.cs
- TransactionScopeDesigner.cs
- ContentType.cs
- UniqueIdentifierService.cs
- TagMapCollection.cs
- ModifierKeysValueSerializer.cs
- RawStylusActions.cs
- AstTree.cs
- FolderBrowserDialog.cs
- SafeCertificateContext.cs
- ConfigurationException.cs
- FrameAutomationPeer.cs
- AssemblyNameProxy.cs
- ButtonFieldBase.cs
- Ray3DHitTestResult.cs
- COM2IDispatchConverter.cs
- MarshalDirectiveException.cs
- DetailsViewCommandEventArgs.cs
- UriSection.cs
- BufferedReceiveManager.cs
- SemaphoreSecurity.cs
- DataViewSetting.cs
- _ChunkParse.cs
- GuidConverter.cs
- TrustManagerMoreInformation.cs
- DesignTimeSiteMapProvider.cs
- MembershipPasswordException.cs
- XmlWriterTraceListener.cs
- BeginEvent.cs
- PlanCompiler.cs
- UmAlQuraCalendar.cs
- DataServiceQuery.cs
- ToolStripComboBox.cs
- WebConfigurationFileMap.cs
- EditorServiceContext.cs
- QueryableDataSourceHelper.cs
- MethodBody.cs
- NameSpaceExtractor.cs
- IntSecurity.cs
- LowerCaseStringConverter.cs
- PEFileEvidenceFactory.cs
- ByteStorage.cs
- Clipboard.cs
- XmlCountingReader.cs
- WebBrowserDocumentCompletedEventHandler.cs
- CapabilitiesRule.cs
- ActivitiesCollection.cs
- RemotingException.cs
- ProfileSection.cs
- RangeValuePattern.cs
- GenericRootAutomationPeer.cs
- ModelService.cs
- WebPartPersonalization.cs
- BypassElementCollection.cs
- Effect.cs
- IxmlLineInfo.cs
- SpeechDetectedEventArgs.cs
- ScriptResourceInfo.cs
- FileSystemEventArgs.cs
- OptionUsage.cs
- FamilyTypeface.cs
- TemplatePagerField.cs
- RecommendedAsConfigurableAttribute.cs
- FixedFindEngine.cs
- QualifiedCellIdBoolean.cs
- NamedPipeTransportSecurityElement.cs
- WebPartMinimizeVerb.cs
- COM2IDispatchConverter.cs
- ArithmeticLiteral.cs
- DesignerAttributeInfo.cs
- TextTabProperties.cs
- DataBindingHandlerAttribute.cs
- NullRuntimeConfig.cs
- RangeValueProviderWrapper.cs
- ConfigXmlComment.cs
- MessageEncodingBindingElementImporter.cs
- SortFieldComparer.cs
- XmlLinkedNode.cs
- DataRelation.cs
- TagPrefixAttribute.cs
- CallTemplateAction.cs
- BitmapDecoder.cs
- GeometryCombineModeValidation.cs
- XmlCharCheckingWriter.cs
- GeneralTransformCollection.cs
- Control.cs
- WCFServiceClientProxyGenerator.cs
- CachedPathData.cs
- ContentDisposition.cs