Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / ValidationPropertyAttribute.cs / 1 / ValidationPropertyAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI {
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Identifies the validation property for a component.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class ValidationPropertyAttribute : Attribute {
///
/// This is the validation event name.
///
private readonly string name;
///
/// Initializes a new instance of the class.
///
public ValidationPropertyAttribute(string name) {
this.name = name;
}
///
/// Indicates the name the specified validation attribute. This property is
/// read-only.
///
public string Name {
get {
return name;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI {
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Identifies the validation property for a component.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class ValidationPropertyAttribute : Attribute {
///
/// This is the validation event name.
///
private readonly string name;
///
/// Initializes a new instance of the class.
///
public ValidationPropertyAttribute(string name) {
this.name = name;
}
///
/// Indicates the name the specified validation attribute. This property is
/// read-only.
///
public string Name {
get {
return name;
}
}
}
}
// 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
- StopStoryboard.cs
- PEFileEvidenceFactory.cs
- Int64.cs
- ThreadInterruptedException.cs
- PrintDialog.cs
- SwitchAttribute.cs
- DataRecordObjectView.cs
- SecurityManager.cs
- CompositionAdorner.cs
- SqlDataReaderSmi.cs
- TCPListener.cs
- SimpleType.cs
- FileDialog.cs
- objectquery_tresulttype.cs
- ZipIOExtraFieldElement.cs
- PointAnimationUsingPath.cs
- DoubleLink.cs
- ThreadStaticAttribute.cs
- SqlConnectionStringBuilder.cs
- RelatedImageListAttribute.cs
- AtomMaterializerLog.cs
- SQLString.cs
- AccessorTable.cs
- DataTableNameHandler.cs
- Condition.cs
- OverrideMode.cs
- OracleSqlParser.cs
- TextInfo.cs
- PrimaryKeyTypeConverter.cs
- Matrix3DStack.cs
- XmlDataProvider.cs
- CompressedStack.cs
- Regex.cs
- FileUpload.cs
- RightNameExpirationInfoPair.cs
- WebPartMovingEventArgs.cs
- Quaternion.cs
- XmlNodeChangedEventArgs.cs
- WsdlHelpGeneratorElement.cs
- NativeMethods.cs
- XmlParserContext.cs
- OleTxTransactionInfo.cs
- ProfilePropertyNameValidator.cs
- PermissionSetEnumerator.cs
- storepermissionattribute.cs
- OleDbReferenceCollection.cs
- QueryAccessibilityHelpEvent.cs
- DataGridViewSelectedCellCollection.cs
- OleCmdHelper.cs
- DocumentPaginator.cs
- AudioBase.cs
- DictionaryGlobals.cs
- ContentPresenter.cs
- HandlerBase.cs
- SQLInt16Storage.cs
- ButtonBaseDesigner.cs
- PasswordPropertyTextAttribute.cs
- WebPartConnectionsEventArgs.cs
- GridEntry.cs
- DependencySource.cs
- PerspectiveCamera.cs
- SmtpLoginAuthenticationModule.cs
- ListCollectionView.cs
- ToolStripDropDownItem.cs
- InternalException.cs
- FontFamily.cs
- Operator.cs
- XmlCharCheckingReader.cs
- HebrewNumber.cs
- IdentityModelDictionary.cs
- AncestorChangedEventArgs.cs
- ColorIndependentAnimationStorage.cs
- ImageFormatConverter.cs
- CompositeDuplexBindingElementImporter.cs
- ResourceSet.cs
- SafeLibraryHandle.cs
- ListViewInsertionMark.cs
- Typeface.cs
- ExpressionBuilder.cs
- KeyInterop.cs
- EntityDataSourceSelectingEventArgs.cs
- Logging.cs
- MarkupProperty.cs
- DefaultHttpHandler.cs
- HttpConfigurationSystem.cs
- BaseUriHelper.cs
- TypeConstant.cs
- UxThemeWrapper.cs
- LOSFormatter.cs
- ResponseBodyWriter.cs
- AssociationTypeEmitter.cs
- DashStyles.cs
- xmlsaver.cs
- Operators.cs
- SqlFacetAttribute.cs
- CursorConverter.cs
- DropShadowEffect.cs
- XPathNavigatorReader.cs
- AnimatedTypeHelpers.cs
- Icon.cs