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
- OleDbReferenceCollection.cs
- CodeIdentifiers.cs
- MediaSystem.cs
- VirtualPathProvider.cs
- CorrelationManager.cs
- SolidColorBrush.cs
- OleDbInfoMessageEvent.cs
- ParserHooks.cs
- MSG.cs
- RedirectionProxy.cs
- SerializationException.cs
- CqlParser.cs
- WebPart.cs
- EmissiveMaterial.cs
- SelectionUIHandler.cs
- InheritedPropertyDescriptor.cs
- TextServicesDisplayAttribute.cs
- JapaneseCalendar.cs
- thaishape.cs
- ParameterModifier.cs
- SqlPersonalizationProvider.cs
- XomlCompilerError.cs
- MediaContext.cs
- DataGridViewRowPostPaintEventArgs.cs
- WindowsMenu.cs
- DockingAttribute.cs
- PersonalizationAdministration.cs
- OperationFormatStyle.cs
- ApplicationDirectoryMembershipCondition.cs
- MemoryMappedFile.cs
- CollectionViewSource.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- EventLogger.cs
- FormViewActionList.cs
- SoapInteropTypes.cs
- SystemResourceHost.cs
- AutomationElementIdentifiers.cs
- TransformedBitmap.cs
- StringOutput.cs
- Point3DCollectionValueSerializer.cs
- SHA1.cs
- CodeCommentStatementCollection.cs
- FileRecordSequenceCompletedAsyncResult.cs
- TraceHandler.cs
- BuildProviderAppliesToAttribute.cs
- ExpressionBuilder.cs
- RuntimeConfig.cs
- SqlTriggerAttribute.cs
- SerializationAttributes.cs
- DebugView.cs
- SoapAttributeAttribute.cs
- DbConnectionPoolCounters.cs
- MetadataException.cs
- mediaeventargs.cs
- WebServiceFault.cs
- TranslateTransform.cs
- LinearKeyFrames.cs
- ObjectIDGenerator.cs
- ValueTypeFixupInfo.cs
- EntityParameter.cs
- IdnElement.cs
- Misc.cs
- SqlCacheDependencySection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- LinkButton.cs
- AxHost.cs
- Attributes.cs
- UmAlQuraCalendar.cs
- typedescriptorpermission.cs
- WorkflowInstance.cs
- EdmPropertyAttribute.cs
- PointCollectionValueSerializer.cs
- SoapFault.cs
- MaskDescriptor.cs
- _ServiceNameStore.cs
- StateMachineHelpers.cs
- AspNetSynchronizationContext.cs
- shaper.cs
- TableDetailsCollection.cs
- Group.cs
- PageAsyncTask.cs
- CustomSignedXml.cs
- TogglePatternIdentifiers.cs
- DatePickerDateValidationErrorEventArgs.cs
- AspNetHostingPermission.cs
- DesignerObject.cs
- StringStorage.cs
- KeyFrames.cs
- CopyNamespacesAction.cs
- SmiRequestExecutor.cs
- StrokeNodeEnumerator.cs
- InternalControlCollection.cs
- dbdatarecord.cs
- IntellisenseTextBox.designer.cs
- BinaryReader.cs
- ConnectionDemuxer.cs
- GridViewCancelEditEventArgs.cs
- ColumnProvider.cs
- PaintValueEventArgs.cs
- DataGridViewButtonCell.cs