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
- ImageButton.cs
- WorkItem.cs
- HttpModuleAction.cs
- DispatcherFrame.cs
- CatalogPartChrome.cs
- EmptyCollection.cs
- InvalidOleVariantTypeException.cs
- DeviceSpecificChoiceCollection.cs
- DocumentApplicationDocumentViewer.cs
- CompatibleIComparer.cs
- DependencyObjectType.cs
- ServicePointManager.cs
- XmlEntity.cs
- NativeCppClassAttribute.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- Page.cs
- CheckBoxField.cs
- MdImport.cs
- SspiHelper.cs
- FrameDimension.cs
- RichTextBoxAutomationPeer.cs
- HitTestFilterBehavior.cs
- Exceptions.cs
- XamlRtfConverter.cs
- IgnoreSectionHandler.cs
- Quaternion.cs
- CatalogZoneBase.cs
- TypedMessageConverter.cs
- ReferenceEqualityComparer.cs
- DataBoundLiteralControl.cs
- TableRow.cs
- MemberHolder.cs
- WebPartMenuStyle.cs
- InputGestureCollection.cs
- PrintEvent.cs
- GeneratedContractType.cs
- DataFormats.cs
- BuildProviderUtils.cs
- OleDbFactory.cs
- WebServiceData.cs
- EncodingStreamWrapper.cs
- ObjectListCommandEventArgs.cs
- FormViewCommandEventArgs.cs
- TextWriterTraceListener.cs
- DetailsViewPagerRow.cs
- CompositeDataBoundControl.cs
- WorkItem.cs
- PropertyDescriptors.cs
- RealizationContext.cs
- XmlBindingWorker.cs
- ObjectList.cs
- SQLRoleProvider.cs
- OleDbParameterCollection.cs
- DataGridViewTextBoxEditingControl.cs
- GenericQueueSurrogate.cs
- ListViewPagedDataSource.cs
- CustomErrorsSection.cs
- Int32.cs
- HwndProxyElementProvider.cs
- XmlUnspecifiedAttribute.cs
- ChainOfDependencies.cs
- CompilationPass2TaskInternal.cs
- TrustManager.cs
- MetadataItemCollectionFactory.cs
- RoleManagerEventArgs.cs
- EntityDataSourceSelectingEventArgs.cs
- GlobalEventManager.cs
- ListDictionary.cs
- PartialCachingControl.cs
- OutArgumentConverter.cs
- TypeUsage.cs
- WindowsGraphics2.cs
- DataServiceQueryContinuation.cs
- TextSpanModifier.cs
- DeadCharTextComposition.cs
- SrgsElementFactory.cs
- MatrixUtil.cs
- StatusBar.cs
- NoClickablePointException.cs
- DurationConverter.cs
- WS2007HttpBindingElement.cs
- TabControlToolboxItem.cs
- TraceData.cs
- BamlRecordHelper.cs
- ObjectResult.cs
- SystemIPv4InterfaceProperties.cs
- PathFigureCollection.cs
- SpnegoTokenAuthenticator.cs
- WebReference.cs
- COM2PropertyPageUITypeConverter.cs
- BindingList.cs
- BitmapEffectInput.cs
- FocusManager.cs
- DataGridViewLayoutData.cs
- WrappedOptions.cs
- LedgerEntryCollection.cs
- InternalRelationshipCollection.cs
- MobileControlsSectionHandler.cs
- DataGridItemCollection.cs
- CapabilitiesState.cs