Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / Script / Services / GenerateScriptTypeAttribute.cs / 2 / 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
- MessageDroppedTraceRecord.cs
- HtmlInputSubmit.cs
- MessageQueuePermissionEntryCollection.cs
- HttpModuleAction.cs
- Signature.cs
- FixedSOMLineRanges.cs
- SqlProfileProvider.cs
- IPipelineRuntime.cs
- PageParser.cs
- EventLogTraceListener.cs
- CapabilitiesRule.cs
- StringFunctions.cs
- ValidatingReaderNodeData.cs
- StringUtil.cs
- FormViewCommandEventArgs.cs
- PackagingUtilities.cs
- PrivateFontCollection.cs
- CompatibleComparer.cs
- SecurityDocument.cs
- Pens.cs
- DataGridView.cs
- _SSPISessionCache.cs
- DataGridViewBand.cs
- HttpResponse.cs
- HtmlInputCheckBox.cs
- RpcCryptoRequest.cs
- ImmutableCollection.cs
- SqlProcedureAttribute.cs
- TimeEnumHelper.cs
- DynamicPropertyHolder.cs
- LocationUpdates.cs
- EdmFunctions.cs
- SmiMetaData.cs
- DataGridColumnsPage.cs
- OletxVolatileEnlistment.cs
- RouteValueDictionary.cs
- DataServiceQueryOfT.cs
- Keywords.cs
- ByteStreamGeometryContext.cs
- RegionIterator.cs
- RegisteredArrayDeclaration.cs
- EtwProvider.cs
- Solver.cs
- ApplicationFileCodeDomTreeGenerator.cs
- __ComObject.cs
- MenuItem.cs
- COM2TypeInfoProcessor.cs
- DecoratedNameAttribute.cs
- NaturalLanguageHyphenator.cs
- PlainXmlDeserializer.cs
- CharAnimationUsingKeyFrames.cs
- EllipseGeometry.cs
- TextElementCollection.cs
- ResourceDescriptionAttribute.cs
- Expander.cs
- BitmapFrameDecode.cs
- MarshalDirectiveException.cs
- PrintPreviewDialog.cs
- DataGridBeginningEditEventArgs.cs
- ResourceManager.cs
- TagPrefixAttribute.cs
- TaskSchedulerException.cs
- SingleAnimation.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SecurityUtils.cs
- EndOfStreamException.cs
- SerialPort.cs
- DnsPermission.cs
- LookupNode.cs
- LabelAutomationPeer.cs
- RequestTimeoutManager.cs
- ProxyElement.cs
- IssuedSecurityTokenProvider.cs
- XmlDownloadManager.cs
- TextRunCache.cs
- DBConcurrencyException.cs
- ApplicationActivator.cs
- RSAOAEPKeyExchangeFormatter.cs
- TcpHostedTransportConfiguration.cs
- EdmToObjectNamespaceMap.cs
- LongTypeConverter.cs
- FrameworkTextComposition.cs
- ObjectTypeMapping.cs
- FixedSOMTextRun.cs
- ColumnResizeAdorner.cs
- StylusButtonEventArgs.cs
- UndoEngine.cs
- COM2PropertyPageUITypeConverter.cs
- listitem.cs
- HashAlgorithm.cs
- TransactionScope.cs
- HttpHeaderCollection.cs
- httpapplicationstate.cs
- RoutingUtilities.cs
- KeyValueConfigurationCollection.cs
- ResourceDescriptionAttribute.cs
- EventEntry.cs
- XmlDocumentSchema.cs
- Transform.cs
- SectionInput.cs