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
- MutexSecurity.cs
- GridViewRow.cs
- PathSegmentCollection.cs
- NavigationService.cs
- Dynamic.cs
- SoapAttributeOverrides.cs
- SecuritySessionSecurityTokenProvider.cs
- MediaElement.cs
- TableLayout.cs
- PrintEvent.cs
- AnonymousIdentificationModule.cs
- ColumnReorderedEventArgs.cs
- ImageDrawing.cs
- SymLanguageVendor.cs
- FrameworkContentElement.cs
- SqlErrorCollection.cs
- DBSchemaTable.cs
- XmlAttributeOverrides.cs
- XhtmlStyleClass.cs
- DataGridViewHeaderCell.cs
- EndpointAddress10.cs
- TerminatorSinks.cs
- CultureTable.cs
- SqlProcedureAttribute.cs
- ExternalCalls.cs
- Trigger.cs
- GuidelineSet.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DataServiceSaveChangesEventArgs.cs
- WrappingXamlSchemaContext.cs
- SymDocumentType.cs
- DataDocumentXPathNavigator.cs
- PageAsyncTaskManager.cs
- FlowDocumentReaderAutomationPeer.cs
- ContextQuery.cs
- FormsAuthenticationConfiguration.cs
- ListViewSelectEventArgs.cs
- StatusStrip.cs
- oledbconnectionstring.cs
- PropertyValueUIItem.cs
- DataControlButton.cs
- OrderByExpression.cs
- uribuilder.cs
- TableRowCollection.cs
- MenuCommand.cs
- CompensationExtension.cs
- LayoutEvent.cs
- Menu.cs
- BookmarkEventArgs.cs
- SerializationUtilities.cs
- Bidi.cs
- GetPageCompletedEventArgs.cs
- CodeDOMUtility.cs
- Preprocessor.cs
- FixedDSBuilder.cs
- RightsManagementEncryptionTransform.cs
- PathFigure.cs
- SQLUtility.cs
- WebControlsSection.cs
- HttpException.cs
- _IPv4Address.cs
- DoubleKeyFrameCollection.cs
- SByteStorage.cs
- arc.cs
- CloseSequence.cs
- AccessibleObject.cs
- XmlSchemaImporter.cs
- Debugger.cs
- DoubleLinkListEnumerator.cs
- DataKey.cs
- CoreChannel.cs
- EnumerableRowCollectionExtensions.cs
- UInt16Storage.cs
- ipaddressinformationcollection.cs
- UnmanagedMemoryStream.cs
- CodeTypeMember.cs
- UpdateManifestForBrowserApplication.cs
- WorkflowDesignerMessageFilter.cs
- PreProcessor.cs
- Soap12ProtocolReflector.cs
- SplitContainer.cs
- DropDownButton.cs
- XpsPartBase.cs
- CodeNamespaceCollection.cs
- SqlDataSourceView.cs
- ControlBindingsConverter.cs
- CompiledQuery.cs
- RequestSecurityTokenResponse.cs
- ApplicationContext.cs
- ImageUrlEditor.cs
- AmbientValueAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- httpstaticobjectscollection.cs
- SimpleApplicationHost.cs
- XmlILTrace.cs
- _UncName.cs
- ResourceManager.cs
- _ShellExpression.cs
- AdapterDictionary.cs
- DocumentOrderComparer.cs