Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / Script / Services / GenerateScriptTypeAttribute.cs / 1 / GenerateScriptTypeAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Script.Services {
using System;
using System.Diagnostics.CodeAnalysis;
using System.Security.Permissions;
using System.Web;
[
AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal),
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.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Script.Services {
using System;
using System.Diagnostics.CodeAnalysis;
using System.Security.Permissions;
using System.Web;
[
AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal),
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
- Compiler.cs
- TaskForm.cs
- DriveNotFoundException.cs
- HttpCacheVaryByContentEncodings.cs
- CaseStatementSlot.cs
- FieldDescriptor.cs
- DataGridViewToolTip.cs
- KnownTypes.cs
- pingexception.cs
- Validator.cs
- XmlCDATASection.cs
- WindowsGraphicsCacheManager.cs
- ApplyImportsAction.cs
- DesignerSerializationVisibilityAttribute.cs
- CannotUnloadAppDomainException.cs
- PlaceHolder.cs
- XmlResolver.cs
- SqlXmlStorage.cs
- NativeBuffer.cs
- ChannelManager.cs
- UserThread.cs
- DispatcherTimer.cs
- SpecialNameAttribute.cs
- MessageQueueKey.cs
- basevalidator.cs
- HTMLTextWriter.cs
- DSASignatureFormatter.cs
- Pen.cs
- ImageSource.cs
- Canvas.cs
- XmlEncoding.cs
- X509RawDataKeyIdentifierClause.cs
- XmlBinaryWriterSession.cs
- UnsettableComboBox.cs
- PropertyCollection.cs
- SqlTrackingQuery.cs
- SqlBooleanMismatchVisitor.cs
- ReadOnlyHierarchicalDataSource.cs
- ListMarkerLine.cs
- TextBoxAutoCompleteSourceConverter.cs
- Set.cs
- SslStream.cs
- ListMarkerLine.cs
- QueryOperationResponseOfT.cs
- ValidationError.cs
- SQLGuid.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- PointAnimationUsingKeyFrames.cs
- PrivilegedConfigurationManager.cs
- OutOfProcStateClientManager.cs
- RadioButton.cs
- LogicalTreeHelper.cs
- LayoutManager.cs
- HtmlLiteralTextAdapter.cs
- XMLUtil.cs
- DBBindings.cs
- RankException.cs
- HybridObjectCache.cs
- XsdDuration.cs
- OrthographicCamera.cs
- SystemEvents.cs
- PageEventArgs.cs
- CommandConverter.cs
- MobileRedirect.cs
- ClassHandlersStore.cs
- MLangCodePageEncoding.cs
- ListParagraph.cs
- LoadWorkflowAsyncResult.cs
- AssemblyFilter.cs
- Atom10ItemFormatter.cs
- CreationContext.cs
- IDReferencePropertyAttribute.cs
- AnimationLayer.cs
- TextBounds.cs
- DrawToolTipEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- precedingsibling.cs
- TraceContextEventArgs.cs
- StoryFragments.cs
- ComUdtElement.cs
- AssemblySettingAttributes.cs
- TraceSource.cs
- DataGridPreparingCellForEditEventArgs.cs
- SqlUtils.cs
- FtpCachePolicyElement.cs
- BooleanToVisibilityConverter.cs
- HttpBrowserCapabilitiesWrapper.cs
- CalendarTable.cs
- ProjectionCamera.cs
- WebPartDisplayModeCancelEventArgs.cs
- PerformanceCounter.cs
- EdmSchemaError.cs
- SchemaCreator.cs
- InfoCardSymmetricCrypto.cs
- InfocardChannelParameter.cs
- EventTrigger.cs
- WebServiceFault.cs
- XsltSettings.cs
- BufferModesCollection.cs
- ObjectItemConventionAssemblyLoader.cs