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
- grammarelement.cs
- XmlQueryType.cs
- EntityParameter.cs
- MenuTracker.cs
- CollectionChangeEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- HandlerFactoryWrapper.cs
- GPPOINTF.cs
- RenderData.cs
- CultureInfo.cs
- DesignerOptionService.cs
- ResetableIterator.cs
- ScrollChrome.cs
- shaperfactory.cs
- PopOutPanel.cs
- RemotingException.cs
- AnnotationComponentManager.cs
- SelectionPatternIdentifiers.cs
- HierarchicalDataBoundControl.cs
- EasingKeyFrames.cs
- DaylightTime.cs
- XmlCustomFormatter.cs
- SqlMetaData.cs
- XPathSelfQuery.cs
- ADMembershipProvider.cs
- XmlUrlResolver.cs
- PrintDocument.cs
- CollectionBuilder.cs
- TreeChangeInfo.cs
- PkcsUtils.cs
- DrawListViewItemEventArgs.cs
- XmlCDATASection.cs
- ButtonBase.cs
- UnicodeEncoding.cs
- ColorAnimationUsingKeyFrames.cs
- Utils.cs
- TemplateBaseAction.cs
- KeyProperty.cs
- LabelAutomationPeer.cs
- TypeInitializationException.cs
- DataGridDetailsPresenter.cs
- DivideByZeroException.cs
- TextEditorContextMenu.cs
- DoubleLink.cs
- DocumentReferenceCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- XamlBrushSerializer.cs
- ImageBrush.cs
- _ConnectStream.cs
- Root.cs
- SerTrace.cs
- VisualBasicSettings.cs
- CompilerParameters.cs
- DataBoundControlHelper.cs
- COM2ColorConverter.cs
- Pts.cs
- DbReferenceCollection.cs
- DataControlFieldHeaderCell.cs
- SqlDataSourceCache.cs
- AssociationEndMember.cs
- XPathParser.cs
- ComponentCodeDomSerializer.cs
- CompletedAsyncResult.cs
- AccessDataSourceWizardForm.cs
- UnsafeMethods.cs
- StaticContext.cs
- ValueOfAction.cs
- HealthMonitoringSectionHelper.cs
- ToolStripPanelRow.cs
- ObjectPropertyMapping.cs
- AdornerDecorator.cs
- coordinator.cs
- CLRBindingWorker.cs
- ProxyGenerationError.cs
- QueryReaderSettings.cs
- ProxyWebPartConnectionCollection.cs
- MdImport.cs
- LOSFormatter.cs
- DynamicField.cs
- DataSourceSerializationException.cs
- CodeCastExpression.cs
- ProcessHostServerConfig.cs
- ForeignKeyConstraint.cs
- PrinterUnitConvert.cs
- AccessibilityApplicationManager.cs
- ScriptMethodAttribute.cs
- ParentUndoUnit.cs
- SplitterPanel.cs
- FormView.cs
- RenderData.cs
- SqlCrossApplyToCrossJoin.cs
- XmlQueryTypeFactory.cs
- JsonUriDataContract.cs
- TdsParserStaticMethods.cs
- DockPanel.cs
- SqlInternalConnectionTds.cs
- MultiSelector.cs
- DataSetMappper.cs
- TreePrinter.cs
- UserPreferenceChangedEventArgs.cs