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
- FixedTextContainer.cs
- DispatcherProcessingDisabled.cs
- SqlBuilder.cs
- NameSpaceExtractor.cs
- ExtenderControl.cs
- TempEnvironment.cs
- OutputCacheSettings.cs
- SharedStream.cs
- XmlArrayItemAttribute.cs
- OutOfMemoryException.cs
- RegistryExceptionHelper.cs
- ControlFilterExpression.cs
- _ListenerRequestStream.cs
- XmlSchemaAttributeGroup.cs
- SecurityUtils.cs
- TriState.cs
- WebPartEditVerb.cs
- RegistryKey.cs
- WaitHandle.cs
- FontInfo.cs
- UpdateCommandGenerator.cs
- TabControlEvent.cs
- NotImplementedException.cs
- WeakReferenceEnumerator.cs
- TransformerInfo.cs
- CryptoConfig.cs
- ConnectionStringsSection.cs
- Visual3DCollection.cs
- CodeTypeConstructor.cs
- UInt32.cs
- AppDomain.cs
- BooleanStorage.cs
- validationstate.cs
- SByteConverter.cs
- MSAANativeProvider.cs
- XmlObjectSerializerWriteContextComplex.cs
- TextViewElement.cs
- XMLSchema.cs
- RowUpdatingEventArgs.cs
- DesignTimeParseData.cs
- HtmlPageAdapter.cs
- QueryComponents.cs
- TextDecoration.cs
- StyleBamlRecordReader.cs
- SafeCryptContextHandle.cs
- DependencyObject.cs
- HttpCacheVary.cs
- IdentifierElement.cs
- CustomCredentialPolicy.cs
- NameNode.cs
- SeekableReadStream.cs
- Vector.cs
- PermissionToken.cs
- DatatypeImplementation.cs
- Type.cs
- ThreadAbortException.cs
- BufferedStream2.cs
- WebZone.cs
- CorrelationManager.cs
- ExplicitDiscriminatorMap.cs
- WinInetCache.cs
- IpcClientManager.cs
- Transactions.cs
- TextDecorations.cs
- Visitor.cs
- OrderingExpression.cs
- FlagPanel.cs
- DictionaryEntry.cs
- ScrollBarRenderer.cs
- StylusLogic.cs
- TextRunProperties.cs
- MemberRelationshipService.cs
- LoadedEvent.cs
- MappedMetaModel.cs
- HwndSubclass.cs
- RoleGroupCollection.cs
- EventLogConfiguration.cs
- PageSetupDialog.cs
- InputDevice.cs
- ConfigurationPermission.cs
- Button.cs
- RadioButton.cs
- AssemblyNameProxy.cs
- SafeProcessHandle.cs
- AppDomain.cs
- StringSorter.cs
- SafeTokenHandle.cs
- StatusBarPanel.cs
- UserMapPath.cs
- EventManager.cs
- SessionMode.cs
- MenuItemCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlQueryContext.cs
- XmlNullResolver.cs
- EUCJPEncoding.cs
- ConfigWriter.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- HtmlElement.cs