Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / TableNameAttribute.cs / 1305376 / TableNameAttribute.cs
using System.Security.Permissions; namespace System.Web.DynamicData { ////// Allows for overriding the name of a table. (What previously TableOptions was used for). /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class TableNameAttribute : Attribute { ////// The new name of the table /// public string Name { get; private set; } ////// Creates a new instance /// /// the new name override public TableNameAttribute(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } Name = name; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.Security.Permissions; namespace System.Web.DynamicData { ////// Allows for overriding the name of a table. (What previously TableOptions was used for). /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class TableNameAttribute : Attribute { ////// The new name of the table /// public string Name { get; private set; } ////// Creates a new instance /// /// the new name override public TableNameAttribute(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } Name = name; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputCacheProfile.cs
- CheckedListBox.cs
- QilGeneratorEnv.cs
- ListBoxItemAutomationPeer.cs
- ObjectQuery_EntitySqlExtensions.cs
- CircleHotSpot.cs
- JapaneseLunisolarCalendar.cs
- HtmlForm.cs
- PeerNameResolver.cs
- SqlRemoveConstantOrderBy.cs
- DbDataSourceEnumerator.cs
- UpdateManifestForBrowserApplication.cs
- SapiAttributeParser.cs
- UInt16Converter.cs
- SystemNetHelpers.cs
- PrtTicket_Editor.cs
- AuthenticationModulesSection.cs
- IisTraceWebEventProvider.cs
- ConnectionPoolManager.cs
- DirectoryNotFoundException.cs
- ResourceAttributes.cs
- SafeNativeMethods.cs
- SpecularMaterial.cs
- RawContentTypeMapper.cs
- CollectionViewSource.cs
- EnumBuilder.cs
- EndGetFileNameFromUserRequest.cs
- DataGridViewElement.cs
- Column.cs
- MsmqUri.cs
- DataKey.cs
- String.cs
- FileInfo.cs
- HttpApplication.cs
- TrackingConditionCollection.cs
- TreeNodeConverter.cs
- MachineKeyConverter.cs
- CorruptingExceptionCommon.cs
- ObjectDataSourceDisposingEventArgs.cs
- CodeVariableDeclarationStatement.cs
- CompilerWrapper.cs
- tibetanshape.cs
- TreeChangeInfo.cs
- DataGridViewDataErrorEventArgs.cs
- CodeIndexerExpression.cs
- GeometryValueSerializer.cs
- Equal.cs
- CreateParams.cs
- Int32Converter.cs
- PanelStyle.cs
- XMLSchema.cs
- WorkflowLayouts.cs
- ClientSettingsProvider.cs
- LinqDataSource.cs
- DoubleStorage.cs
- NetPipeSection.cs
- TableItemPattern.cs
- DataColumn.cs
- OneOfTypeConst.cs
- AvTraceFormat.cs
- TraceHandler.cs
- XmlNodeChangedEventArgs.cs
- CompositeCollection.cs
- XhtmlBasicControlAdapter.cs
- PageAsyncTaskManager.cs
- ConnectionOrientedTransportChannelListener.cs
- MappableObjectManager.cs
- RuntimeEnvironment.cs
- Rect3D.cs
- StringKeyFrameCollection.cs
- Nodes.cs
- Label.cs
- CheckBoxField.cs
- X509CertificateClaimSet.cs
- InstancePersistenceCommand.cs
- GenericXmlSecurityToken.cs
- MemberMaps.cs
- FilterQuery.cs
- NotifyIcon.cs
- webeventbuffer.cs
- autovalidator.cs
- PreProcessor.cs
- EmbeddedMailObject.cs
- NonParentingControl.cs
- HtmlInputPassword.cs
- ListControl.cs
- activationcontext.cs
- SerializationTrace.cs
- Command.cs
- SafeMarshalContext.cs
- WebConfigurationHostFileChange.cs
- RegexStringValidatorAttribute.cs
- ProjectionCamera.cs
- BulletedListEventArgs.cs
- FilterQueryOptionExpression.cs
- TrackingSection.cs
- DataControlCommands.cs
- GridViewCommandEventArgs.cs
- SchemaAttDef.cs
- FormatException.cs