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
- CodeTypeDeclaration.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlWhitespace.cs
- UnaryQueryOperator.cs
- QueryOptionExpression.cs
- PrincipalPermission.cs
- PropertyDescriptorCollection.cs
- ScrollBar.cs
- ThreadStateException.cs
- keycontainerpermission.cs
- EmptyCollection.cs
- printdlgexmarshaler.cs
- SymLanguageVendor.cs
- EventLogEntry.cs
- BasicExpressionVisitor.cs
- DataError.cs
- _NegotiateClient.cs
- KoreanCalendar.cs
- newinstructionaction.cs
- PropertyRecord.cs
- PassportAuthenticationModule.cs
- ListViewItem.cs
- StringUtil.cs
- FontStretches.cs
- ItemsChangedEventArgs.cs
- CharUnicodeInfo.cs
- DataGridItemCollection.cs
- CompilationAssemblyInstallComponent.cs
- InternalBase.cs
- AdornerHitTestResult.cs
- PenThreadWorker.cs
- FieldMetadata.cs
- ContentElement.cs
- SystemParameters.cs
- BamlReader.cs
- HtmlPanelAdapter.cs
- ProxyWebPartConnectionCollection.cs
- ObjectQueryExecutionPlan.cs
- InstanceCompleteException.cs
- OneToOneMappingSerializer.cs
- ExtractedStateEntry.cs
- XmlSchemaImporter.cs
- WebPartMenuStyle.cs
- DrawingDrawingContext.cs
- DragDeltaEventArgs.cs
- QueryStack.cs
- BinaryCommonClasses.cs
- ElementMarkupObject.cs
- XmlSchemaComplexContentRestriction.cs
- UserUseLicenseDictionaryLoader.cs
- Interfaces.cs
- Configuration.cs
- CodeGeneratorAttribute.cs
- RenderingBiasValidation.cs
- XmlSchemaCollection.cs
- EntityWrapper.cs
- BulletedListEventArgs.cs
- ExpressionEditorSheet.cs
- PolyBezierSegmentFigureLogic.cs
- ArraySortHelper.cs
- GroupQuery.cs
- TagPrefixCollection.cs
- Cursors.cs
- BookmarkScope.cs
- unsafenativemethodstextservices.cs
- QuadraticBezierSegment.cs
- TextPointer.cs
- ActiveXContainer.cs
- MultiView.cs
- LocationChangedEventArgs.cs
- CallTemplateAction.cs
- SortedList.cs
- WebPartMinimizeVerb.cs
- UpDownBase.cs
- InvokeHandlers.cs
- ArgumentNullException.cs
- XmlNamespaceMappingCollection.cs
- EdmMember.cs
- ImpersonateTokenRef.cs
- XmlnsCompatibleWithAttribute.cs
- CancellationTokenRegistration.cs
- FormView.cs
- DictionaryBase.cs
- IssuanceLicense.cs
- PageThemeBuildProvider.cs
- QilInvokeLateBound.cs
- InfoCardSymmetricCrypto.cs
- _SafeNetHandles.cs
- MethodBuilderInstantiation.cs
- HttpRuntimeSection.cs
- DocumentGrid.cs
- TabPanel.cs
- FilterableAttribute.cs
- RootNamespaceAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlLanguageConverter.cs
- QilScopedVisitor.cs
- RangeBaseAutomationPeer.cs
- HandlerBase.cs
- ConfigurationLocation.cs