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
- DataColumnCollection.cs
- SortableBindingList.cs
- ContainerTracking.cs
- PropertyBuilder.cs
- CompositeKey.cs
- SecurityIdentifierElement.cs
- NumberAction.cs
- UserPrincipalNameElement.cs
- Vector3DValueSerializer.cs
- DiscoveryClientChannelBase.cs
- TrustLevelCollection.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- ResourceWriter.cs
- StorageInfo.cs
- ClientTargetCollection.cs
- AuthenticationModulesSection.cs
- Quaternion.cs
- Decoder.cs
- LinearGradientBrush.cs
- Directory.cs
- ReadOnlyDictionary.cs
- Exceptions.cs
- VisualStyleElement.cs
- FixedSOMTableRow.cs
- SqlRetyper.cs
- UserValidatedEventArgs.cs
- ControlPropertyNameConverter.cs
- AlphaSortedEnumConverter.cs
- DmlSqlGenerator.cs
- DynamicScriptObject.cs
- HttpProfileGroupBase.cs
- QuaternionIndependentAnimationStorage.cs
- TileModeValidation.cs
- EntityParameter.cs
- BuildManagerHost.cs
- Lease.cs
- XmlIgnoreAttribute.cs
- CancellationToken.cs
- Light.cs
- Mapping.cs
- ColorInterpolationModeValidation.cs
- CompletionProxy.cs
- NodeLabelEditEvent.cs
- TemplateNameScope.cs
- List.cs
- CollectionEditVerbManager.cs
- UIElementParagraph.cs
- ArrayHelper.cs
- ToolStripRendererSwitcher.cs
- MetadataConversionError.cs
- DiscoveryReference.cs
- WebPartCloseVerb.cs
- Annotation.cs
- XmlCustomFormatter.cs
- DesignOnlyAttribute.cs
- IWorkflowDebuggerService.cs
- EntityModelSchemaGenerator.cs
- LoginName.cs
- XmlSchemaImporter.cs
- _TLSstream.cs
- AuthorizationRule.cs
- MachineKeySection.cs
- ObjectNotFoundException.cs
- Stroke.cs
- ProxyManager.cs
- SqlCrossApplyToCrossJoin.cs
- PriorityItem.cs
- ManifestResourceInfo.cs
- ReceiveContextCollection.cs
- webproxy.cs
- TypeLibConverter.cs
- DotAtomReader.cs
- DbConnectionClosed.cs
- StylusButtonEventArgs.cs
- ScopedKnownTypes.cs
- HideDisabledControlAdapter.cs
- RealProxy.cs
- PersonalizationStateQuery.cs
- ProfilePropertyNameValidator.cs
- QueryReaderSettings.cs
- SiteMapNodeCollection.cs
- ImageButton.cs
- TreeViewItemAutomationPeer.cs
- BlockCollection.cs
- Update.cs
- FloatAverageAggregationOperator.cs
- TriggerBase.cs
- Itemizer.cs
- RecordBuilder.cs
- TrackingProvider.cs
- HotSpot.cs
- ProfileGroupSettingsCollection.cs
- SmtpDateTime.cs
- CellParaClient.cs
- QilBinary.cs
- CodeAccessPermission.cs
- IncrementalCompileAnalyzer.cs
- util.cs
- ImportCatalogPart.cs
- HttpModule.cs