Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Script / Services / GenerateScriptTypeAttribute.cs / 1305376 / GenerateScriptTypeAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Script.Services {
using System;
using System.Diagnostics.CodeAnalysis;
using System.Web;
[
AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Method, AllowMultiple = true)
]
public sealed class GenerateScriptTypeAttribute : Attribute {
// Constructors
public GenerateScriptTypeAttribute(Type type) {
if (type == null) {
throw new ArgumentNullException("type");
}
_type = type;
}
// Instance Properties
private Type _type;
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods",
Justification = "Distinguishable from Object.GetType()")]
public Type Type {
get {
return _type;
}
}
private string _typeId;
public string ScriptTypeId {
get {
return _typeId ?? String.Empty;
}
set {
_typeId = value;
}
}
}
}
// 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
- CheckBoxRenderer.cs
- LifetimeMonitor.cs
- AuthenticationServiceManager.cs
- ConfigUtil.cs
- Baml2006Reader.cs
- DateTimeValueSerializer.cs
- KeySplineConverter.cs
- EventLogPermission.cs
- KnownBoxes.cs
- XmlPreloadedResolver.cs
- StaticFileHandler.cs
- DescendantBaseQuery.cs
- SchemaNames.cs
- CodeTypeMember.cs
- Point4DValueSerializer.cs
- XPathNodeInfoAtom.cs
- DbConnectionOptions.cs
- CorrelationManager.cs
- OptimisticConcurrencyException.cs
- TemplateColumn.cs
- HttpProfileGroupBase.cs
- PrintPageEvent.cs
- HtmlTextArea.cs
- ParallelEnumerable.cs
- Activity.cs
- LongTypeConverter.cs
- TrackingAnnotationCollection.cs
- DataGridViewColumn.cs
- TextWriterEngine.cs
- ScrollItemPatternIdentifiers.cs
- XPathItem.cs
- SqlDataSourceCustomCommandEditor.cs
- DbModificationClause.cs
- PolyLineSegment.cs
- Page.cs
- WindowCollection.cs
- PathSegmentCollection.cs
- CompositeControl.cs
- SqlUtils.cs
- MessageContractExporter.cs
- BulletChrome.cs
- HtmlEmptyTagControlBuilder.cs
- NumberFormatter.cs
- FormViewModeEventArgs.cs
- PrtCap_Public.cs
- Selection.cs
- RegistryKey.cs
- IdleTimeoutMonitor.cs
- HwndPanningFeedback.cs
- ImageField.cs
- Inflater.cs
- RoutedPropertyChangedEventArgs.cs
- WithParamAction.cs
- UnicastIPAddressInformationCollection.cs
- ProfessionalColorTable.cs
- Matrix.cs
- SqlHelper.cs
- securitycriticaldataformultiplegetandset.cs
- BitmapEffectInputConnector.cs
- namescope.cs
- Localizer.cs
- UmAlQuraCalendar.cs
- TypePropertyEditor.cs
- AmbientValueAttribute.cs
- TableSectionStyle.cs
- EventRecord.cs
- Animatable.cs
- StylusPointProperties.cs
- RectangleF.cs
- DragEventArgs.cs
- SecurityResources.cs
- SendSecurityHeaderElementContainer.cs
- EntityDesignerUtils.cs
- IntegerValidatorAttribute.cs
- RenderCapability.cs
- ApplicationInfo.cs
- ThreadSafeList.cs
- ServiceAuthorizationManager.cs
- GPRECTF.cs
- MouseGestureValueSerializer.cs
- BinaryNode.cs
- ObjectAnimationUsingKeyFrames.cs
- IDReferencePropertyAttribute.cs
- XmlAttributeProperties.cs
- MulticastOption.cs
- ZoneMembershipCondition.cs
- DrawingBrush.cs
- ItemChangedEventArgs.cs
- Policy.cs
- DbConnectionPoolGroup.cs
- ImplicitInputBrush.cs
- InputLanguageProfileNotifySink.cs
- DiscoveryClientDuplexChannel.cs
- X509Chain.cs
- NavigatorInput.cs
- ObjectHandle.cs
- InvalidPrinterException.cs
- ColorConverter.cs
- CryptoApi.cs
- ViewDesigner.cs