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
- FlowDocumentPaginator.cs
- DesignerAutoFormatStyle.cs
- CatalogZoneDesigner.cs
- ImageAnimator.cs
- PeerContact.cs
- SctClaimDictionary.cs
- IgnorePropertiesAttribute.cs
- PseudoWebRequest.cs
- ComponentResourceKeyConverter.cs
- MatrixAnimationUsingPath.cs
- MultiTouchSystemGestureLogic.cs
- BuildResult.cs
- PerspectiveCamera.cs
- SqlClientWrapperSmiStreamChars.cs
- __ConsoleStream.cs
- SqlTypeConverter.cs
- CollectionBase.cs
- TemplateBindingExtension.cs
- RelationshipEndCollection.cs
- OutputCacheSection.cs
- FlowLayout.cs
- EncoderNLS.cs
- SpeakProgressEventArgs.cs
- AdjustableArrowCap.cs
- ExpressionEditorAttribute.cs
- SizeConverter.cs
- AssemblySettingAttributes.cs
- ShaperBuffers.cs
- FixedElement.cs
- AuthenticationServiceManager.cs
- Listbox.cs
- StringReader.cs
- Events.cs
- IntSecurity.cs
- CapacityStreamGeometryContext.cs
- TransformerTypeCollection.cs
- bindurihelper.cs
- FieldCollectionEditor.cs
- _Events.cs
- InputProcessorProfilesLoader.cs
- ServiceRoute.cs
- HttpApplication.cs
- DataServiceQueryOfT.cs
- WsiProfilesElement.cs
- RegexFCD.cs
- ManagedFilter.cs
- RequestCacheEntry.cs
- SafeNativeMethods.cs
- BaseHashHelper.cs
- AffineTransform3D.cs
- DataGridViewLayoutData.cs
- _PooledStream.cs
- XmlNodeChangedEventArgs.cs
- ScaleTransform.cs
- ITextView.cs
- X509Certificate2.cs
- PartDesigner.cs
- StandardBindingElement.cs
- EmptyTextWriter.cs
- XmlToDatasetMap.cs
- LoginUtil.cs
- NoResizeHandleGlyph.cs
- TextBoxAutoCompleteSourceConverter.cs
- Size.cs
- TailCallAnalyzer.cs
- UnsafeNativeMethods.cs
- PenThreadWorker.cs
- HtmlHistory.cs
- XmlUnspecifiedAttribute.cs
- ReadOnlyActivityGlyph.cs
- GlyphsSerializer.cs
- AbandonedMutexException.cs
- CodeSubDirectory.cs
- FlowNode.cs
- NativeBuffer.cs
- RegistrationServices.cs
- ParamArrayAttribute.cs
- HttpModuleCollection.cs
- NeedSkipTokenVisitor.cs
- OracleString.cs
- GregorianCalendar.cs
- DocumentXmlWriter.cs
- CodeMemberEvent.cs
- ADMembershipProvider.cs
- GenericEnumerator.cs
- BindingExpression.cs
- EventLogLink.cs
- datacache.cs
- HandlerBase.cs
- HttpListenerElement.cs
- MultiBindingExpression.cs
- PixelFormat.cs
- FixedDocumentPaginator.cs
- RotateTransform.cs
- MsmqBindingMonitor.cs
- Compiler.cs
- PeerInvitationResponse.cs
- WpfWebRequestHelper.cs
- RevocationPoint.cs
- Rss20ItemFormatter.cs