Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / RegisteredExpandoAttribute.cs / 1305376 / RegisteredExpandoAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
[
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;
[
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
- SignedPkcs7.cs
- ComponentChangedEvent.cs
- ControlPersister.cs
- PropertySourceInfo.cs
- StringValidator.cs
- EdmValidator.cs
- WeakReference.cs
- WindowsFormsHostPropertyMap.cs
- FixedSOMContainer.cs
- ContractInferenceHelper.cs
- CodeGroup.cs
- TextTreeTextElementNode.cs
- MetabaseSettingsIis7.cs
- DataPagerField.cs
- SerialStream.cs
- HealthMonitoringSectionHelper.cs
- ScrollData.cs
- InstrumentationTracker.cs
- XmlValidatingReaderImpl.cs
- CompositeCollection.cs
- EntityViewGenerator.cs
- StorageEntityTypeMapping.cs
- TrackingProfile.cs
- BasicExpressionVisitor.cs
- CacheVirtualItemsEvent.cs
- UnicodeEncoding.cs
- _NestedMultipleAsyncResult.cs
- ReadOnlyObservableCollection.cs
- WindowsFormsHelpers.cs
- HandlerBase.cs
- SelectionEditingBehavior.cs
- TableParaClient.cs
- ControlIdConverter.cs
- ActivationServices.cs
- RequestContextBase.cs
- SqlCacheDependencyDatabaseCollection.cs
- UnmanagedHandle.cs
- TimeoutValidationAttribute.cs
- IChannel.cs
- XPathBinder.cs
- SiteMapNodeCollection.cs
- Ports.cs
- KnownBoxes.cs
- MasterPageBuildProvider.cs
- BindingList.cs
- SmtpNetworkElement.cs
- HtmlValidatorAdapter.cs
- RangeBaseAutomationPeer.cs
- SamlAttributeStatement.cs
- OutputScopeManager.cs
- IPAddressCollection.cs
- BitmapEffectGroup.cs
- PrintingPermissionAttribute.cs
- QueryableDataSourceEditData.cs
- UnmanagedMemoryStream.cs
- RSAOAEPKeyExchangeDeformatter.cs
- KeyGesture.cs
- Rect3D.cs
- ImmutableAssemblyCacheEntry.cs
- DataServiceKeyAttribute.cs
- Convert.cs
- TextRange.cs
- CryptographicAttribute.cs
- PanelStyle.cs
- DynamicMethod.cs
- WebPartMinimizeVerb.cs
- Enum.cs
- WebRequest.cs
- shaperfactoryquerycacheentry.cs
- XhtmlBasicObjectListAdapter.cs
- EventLogPermissionEntryCollection.cs
- SharedStatics.cs
- EntityDataSourceColumn.cs
- StructuredTypeEmitter.cs
- AnnotationResourceCollection.cs
- UnSafeCharBuffer.cs
- RoutedEventValueSerializer.cs
- SpellerInterop.cs
- TemplateComponentConnector.cs
- DnsPermission.cs
- OleDbStruct.cs
- WorkflowPageSetupDialog.cs
- IncrementalReadDecoders.cs
- DebugView.cs
- ProfileParameter.cs
- BindingListCollectionView.cs
- TrackingParameters.cs
- BindingSourceDesigner.cs
- WindowsImpersonationContext.cs
- GridProviderWrapper.cs
- ProcessHostServerConfig.cs
- NativeCompoundFileAPIs.cs
- CustomError.cs
- XmlSchemaAll.cs
- SchemaName.cs
- GridViewDeleteEventArgs.cs
- RepeaterDesigner.cs
- RefType.cs
- MsmqOutputChannel.cs
- TextRangeEdit.cs