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
- WebPartDisplayModeCancelEventArgs.cs
- CanExecuteRoutedEventArgs.cs
- DynamicILGenerator.cs
- GlobalDataBindingHandler.cs
- SchemaEntity.cs
- RIPEMD160Managed.cs
- EntityDataSourceEntityTypeFilterItem.cs
- OdbcConnectionHandle.cs
- DbConnectionPoolGroup.cs
- SqlDelegatedTransaction.cs
- MultiBinding.cs
- ExpressionBindingsDialog.cs
- PropertyDescriptorComparer.cs
- Directory.cs
- SecurityPermission.cs
- Table.cs
- GenericXmlSecurityToken.cs
- UIElementCollection.cs
- ConfigurationPermission.cs
- BoundColumn.cs
- ViewSimplifier.cs
- TreeNodeBinding.cs
- EventArgs.cs
- QilTernary.cs
- Paragraph.cs
- SyndicationDeserializer.cs
- ExpressionReplacer.cs
- arclist.cs
- FixedFindEngine.cs
- CustomErrorCollection.cs
- PropertyValidationContext.cs
- MessageFormatterConverter.cs
- SQLDecimalStorage.cs
- UrlPropertyAttribute.cs
- BindingsCollection.cs
- ReplyChannel.cs
- NameSpaceExtractor.cs
- PerformanceCountersElement.cs
- WebResourceAttribute.cs
- ByteStreamMessage.cs
- IPEndPoint.cs
- DiagnosticTrace.cs
- LocationUpdates.cs
- HtmlControlPersistable.cs
- RowParagraph.cs
- CreateUserErrorEventArgs.cs
- TraceLog.cs
- SqlDataSourceCommandEventArgs.cs
- BatchParser.cs
- TreeViewImageKeyConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- UserControl.cs
- BuildDependencySet.cs
- Point3DIndependentAnimationStorage.cs
- FixedSOMGroup.cs
- BindingsSection.cs
- MDIControlStrip.cs
- WebBrowser.cs
- TrackingStringDictionary.cs
- EncodingTable.cs
- SqlLiftIndependentRowExpressions.cs
- XmlAnyElementAttributes.cs
- AnnotationStore.cs
- GenerateTemporaryTargetAssembly.cs
- InstancePersistenceContext.cs
- WebPartRestoreVerb.cs
- SessionStateItemCollection.cs
- MostlySingletonList.cs
- OLEDB_Enum.cs
- XmlAttributeProperties.cs
- WhitespaceRuleLookup.cs
- ExpressionQuoter.cs
- CodeDomLoader.cs
- HostedImpersonationContext.cs
- FlowDocumentPage.cs
- KeysConverter.cs
- ServiceDescriptionImporter.cs
- SigningCredentials.cs
- IndicCharClassifier.cs
- HttpValueCollection.cs
- DataGridRow.cs
- PropertyGridDesigner.cs
- DataGridViewCellLinkedList.cs
- ApplicationId.cs
- LocalIdCollection.cs
- File.cs
- PageParserFilter.cs
- BasicBrowserDialog.cs
- ImageAttributes.cs
- InheritanceRules.cs
- ListItemsCollectionEditor.cs
- CharAnimationBase.cs
- TextRangeAdaptor.cs
- DataSourceXmlTextReader.cs
- ListViewDeletedEventArgs.cs
- IndependentAnimationStorage.cs
- _BasicClient.cs
- VisualTreeHelper.cs
- SqlCacheDependencyDatabaseCollection.cs
- SafeHGlobalHandleCritical.cs