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
- UserValidatedEventArgs.cs
- HostedElements.cs
- MappingItemCollection.cs
- BufferedWebEventProvider.cs
- CompilationRelaxations.cs
- PathStreamGeometryContext.cs
- RowsCopiedEventArgs.cs
- CaretElement.cs
- CertificateReferenceElement.cs
- ExtensionFile.cs
- UIElement.cs
- WebBrowser.cs
- UnaryNode.cs
- WebServiceClientProxyGenerator.cs
- formatstringdialog.cs
- TransformedBitmap.cs
- WorkflowRuntimeServiceElementCollection.cs
- BasicKeyConstraint.cs
- PackageRelationshipCollection.cs
- ErrorFormatterPage.cs
- CodeMethodInvokeExpression.cs
- ReadOnlyNameValueCollection.cs
- CryptoProvider.cs
- WebPartConnectionsCancelVerb.cs
- DbConnectionStringCommon.cs
- GridViewSortEventArgs.cs
- NamespaceListProperty.cs
- ProjectionCamera.cs
- AssemblyCollection.cs
- TreeNodeCollectionEditor.cs
- ForwardPositionQuery.cs
- PersistenceProviderFactory.cs
- InvokeGenerator.cs
- Color.cs
- InkCanvasInnerCanvas.cs
- SkewTransform.cs
- PointLightBase.cs
- SqlUnionizer.cs
- WorkflowCreationContext.cs
- LeaseManager.cs
- CompletedAsyncResult.cs
- IDReferencePropertyAttribute.cs
- PermissionRequestEvidence.cs
- CommandBinding.cs
- QilInvokeLateBound.cs
- StringSource.cs
- UpdateTracker.cs
- TextSchema.cs
- Vector3D.cs
- Point3DAnimation.cs
- ServiceReference.cs
- SHA256Managed.cs
- XpsFixedDocumentReaderWriter.cs
- TdsParserStateObject.cs
- ConfigurationSectionGroupCollection.cs
- ErrorLog.cs
- ConfigUtil.cs
- ResXResourceWriter.cs
- SecUtil.cs
- ToolStripStatusLabel.cs
- BeginEvent.cs
- BaseAppDomainProtocolHandler.cs
- RadioButton.cs
- TableLayoutSettings.cs
- Tool.cs
- _OverlappedAsyncResult.cs
- TypeLibConverter.cs
- XmlSchemaChoice.cs
- FontFamily.cs
- ClientType.cs
- Oid.cs
- TdsEnums.cs
- TemplatedAdorner.cs
- MenuCommand.cs
- ConfigXmlText.cs
- HttpProxyCredentialType.cs
- UIElementPropertyUndoUnit.cs
- DataGridLinkButton.cs
- LateBoundBitmapDecoder.cs
- TdsEnums.cs
- Journal.cs
- PaintEvent.cs
- SafeMILHandleMemoryPressure.cs
- UntypedNullExpression.cs
- DefaultShape.cs
- UIAgentMonitorHandle.cs
- Int64Storage.cs
- PageSettings.cs
- ITreeGenerator.cs
- HijriCalendar.cs
- ObjectManager.cs
- WindowsNonControl.cs
- ResourcePart.cs
- LineVisual.cs
- httpapplicationstate.cs
- PageParserFilter.cs
- Panel.cs
- ScriptControl.cs
- XpsManager.cs
- CustomBindingElement.cs