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
- FlowDocumentPageViewerAutomationPeer.cs
- HasActivatableWorkflowEvent.cs
- _ProxyRegBlob.cs
- WindowsToolbarAsMenu.cs
- WindowsGraphicsCacheManager.cs
- PartialCachingControl.cs
- PolyLineSegmentFigureLogic.cs
- SupportsEventValidationAttribute.cs
- ExceptQueryOperator.cs
- XamlSerializer.cs
- ObjectViewListener.cs
- SchemaLookupTable.cs
- IResourceProvider.cs
- SeparatorAutomationPeer.cs
- TransactionBridge.cs
- ContextDataSourceView.cs
- AttributeSetAction.cs
- SchemaComplexType.cs
- SystemResourceHost.cs
- GeneratedContractType.cs
- SqlResolver.cs
- EntityDataSourceStatementEditorForm.cs
- OdbcTransaction.cs
- HyperLink.cs
- Win32PrintDialog.cs
- RawUIStateInputReport.cs
- CompareValidator.cs
- SerializationObjectManager.cs
- CompositeCollection.cs
- CollectionViewSource.cs
- _NegoStream.cs
- PlatformNotSupportedException.cs
- AnnotationComponentChooser.cs
- TransactionalPackage.cs
- CapabilitiesPattern.cs
- ComboBoxAutomationPeer.cs
- EqualityComparer.cs
- DocumentPageView.cs
- X509CertificateValidator.cs
- ReceiveContent.cs
- MarginCollapsingState.cs
- HideDisabledControlAdapter.cs
- AdornerHitTestResult.cs
- SocketCache.cs
- ConnectionManagementElementCollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CatalogPart.cs
- ComponentEvent.cs
- PerfProviderCollection.cs
- CodePageUtils.cs
- DataGridViewBand.cs
- CodeArrayIndexerExpression.cs
- ResXBuildProvider.cs
- ControlBuilderAttribute.cs
- GZipDecoder.cs
- DiagnosticStrings.cs
- DataGridState.cs
- DataGridViewCellStateChangedEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- PenLineJoinValidation.cs
- DrawingContextWalker.cs
- DesignerSerializationManager.cs
- WarningException.cs
- basenumberconverter.cs
- GridViewSelectEventArgs.cs
- MDIClient.cs
- RSAPKCS1SignatureFormatter.cs
- Drawing.cs
- TextDecorationCollectionConverter.cs
- LineSegment.cs
- DefinitionBase.cs
- SqlDependencyListener.cs
- RightsManagementPermission.cs
- ToolStripMenuItem.cs
- ClientClassGenerator.cs
- RegexGroupCollection.cs
- InputReport.cs
- ProtocolInformationWriter.cs
- SystemNetworkInterface.cs
- ReplyAdapterChannelListener.cs
- Compilation.cs
- DataStreamFromComStream.cs
- PenCursorManager.cs
- ComEventsHelper.cs
- DatagridviewDisplayedBandsData.cs
- QueryContinueDragEventArgs.cs
- List.cs
- LongValidatorAttribute.cs
- DesignRelationCollection.cs
- CriticalHandle.cs
- UInt32Storage.cs
- EventLogPropertySelector.cs
- SqlTransaction.cs
- OracleInternalConnection.cs
- CodeDirectoryCompiler.cs
- SimpleType.cs
- SqlServices.cs
- BroadcastEventHelper.cs
- RefType.cs