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
- PrimitiveSchema.cs
- BooleanSwitch.cs
- fixedPageContentExtractor.cs
- x509utils.cs
- ObjectSet.cs
- ValidationError.cs
- EventMap.cs
- TypeCacheManager.cs
- BrowserCapabilitiesCompiler.cs
- TheQuery.cs
- XmlSchemaNotation.cs
- PictureBox.cs
- Debugger.cs
- HashAlgorithm.cs
- SchemaImporter.cs
- PolicyStatement.cs
- ErrorFormatter.cs
- ArrayItemValue.cs
- InvalidStoreProtectionKeyException.cs
- GridViewAutomationPeer.cs
- OdbcTransaction.cs
- NullableFloatAverageAggregationOperator.cs
- ExpressionBuilderContext.cs
- OverflowException.cs
- TableAutomationPeer.cs
- RotateTransform3D.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- QuadraticBezierSegment.cs
- CodeExpressionRuleDeclaration.cs
- ServiceModelEnumValidatorAttribute.cs
- XamlDesignerSerializationManager.cs
- basevalidator.cs
- CheckBoxRenderer.cs
- ImageDrawing.cs
- AutomationProperties.cs
- ListItem.cs
- DataColumnChangeEvent.cs
- codemethodreferenceexpression.cs
- KeyboardDevice.cs
- ErrorEventArgs.cs
- SevenBitStream.cs
- SQLDouble.cs
- IndentTextWriter.cs
- AtomMaterializerLog.cs
- ValidationResult.cs
- PeerNameRecord.cs
- Camera.cs
- NamespaceList.cs
- SelectionItemProviderWrapper.cs
- SelectorItemAutomationPeer.cs
- _Rfc2616CacheValidators.cs
- ParameterCollection.cs
- SpecialNameAttribute.cs
- ErrorFormatter.cs
- BindingExpression.cs
- HostedTransportConfigurationManager.cs
- WebPartMinimizeVerb.cs
- CryptoApi.cs
- BuildManager.cs
- HtmlInputText.cs
- _AutoWebProxyScriptWrapper.cs
- TagPrefixCollection.cs
- FileDialogCustomPlace.cs
- DragEvent.cs
- MulticastNotSupportedException.cs
- StylusButtonEventArgs.cs
- RawStylusInput.cs
- ReceiveSecurityHeaderElementManager.cs
- ServicesUtilities.cs
- SubtreeProcessor.cs
- MILUtilities.cs
- ModelTreeEnumerator.cs
- AttributeXamlType.cs
- NoPersistScope.cs
- LinkArea.cs
- SinglePageViewer.cs
- DynamicResourceExtensionConverter.cs
- Timer.cs
- ConditionalAttribute.cs
- BaseCodePageEncoding.cs
- NameValueSectionHandler.cs
- TimeSpanConverter.cs
- SpellCheck.cs
- TableRowGroupCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- CodeMemberProperty.cs
- ProfileWorkflowElement.cs
- TypeSystem.cs
- DesignerCatalogPartChrome.cs
- PeerName.cs
- DataGridViewColumnHeaderCell.cs
- VerificationAttribute.cs
- TextEditorLists.cs
- ZoomPercentageConverter.cs
- HttpRawResponse.cs
- ToolStripSplitStackLayout.cs
- XmlSchemaRedefine.cs
- InternalTypeHelper.cs
- JsonDataContract.cs
- MsmqTransportElement.cs