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
- ContainerVisual.cs
- XmlComplianceUtil.cs
- DtrList.cs
- SaveRecipientRequest.cs
- SqlFactory.cs
- WindowsFormsHelpers.cs
- ServiceInstanceProvider.cs
- Block.cs
- PropertyEntry.cs
- UIElementAutomationPeer.cs
- ClientBuildManagerCallback.cs
- TemplateModeChangedEventArgs.cs
- CreateUserWizardAutoFormat.cs
- ScrollBarAutomationPeer.cs
- ToolStripGripRenderEventArgs.cs
- HtmlShim.cs
- ReadOnlyPropertyMetadata.cs
- TextStore.cs
- WinInet.cs
- InkCollectionBehavior.cs
- PropertyChangeTracker.cs
- ParamArrayAttribute.cs
- HostingEnvironment.cs
- AuthenticationService.cs
- ToolStripRenderer.cs
- PointCollection.cs
- NullToBooleanConverter.cs
- User.cs
- ProofTokenCryptoHandle.cs
- XPathExpr.cs
- shaperfactoryquerycacheentry.cs
- FullTrustAssembly.cs
- HttpWebRequestElement.cs
- XmlSchemaInclude.cs
- ErrorStyle.cs
- EntityParameter.cs
- EntityViewContainer.cs
- CodeChecksumPragma.cs
- TextElementEditingBehaviorAttribute.cs
- DefaultObjectMappingItemCollection.cs
- ProfileManager.cs
- ReadOnlyDataSourceView.cs
- BufferAllocator.cs
- InheritanceAttribute.cs
- FormsIdentity.cs
- X509Utils.cs
- Compiler.cs
- OutputCacheProviderCollection.cs
- PropertyGeneratedEventArgs.cs
- ObjectPersistData.cs
- FormatSettings.cs
- WindowsButton.cs
- ProcessThread.cs
- CFStream.cs
- ConfigXmlAttribute.cs
- PolyLineSegment.cs
- WebSysDefaultValueAttribute.cs
- ComNativeDescriptor.cs
- HttpHandlersInstallComponent.cs
- _RequestCacheProtocol.cs
- TrimSurroundingWhitespaceAttribute.cs
- StickyNoteHelper.cs
- RefType.cs
- BaseProcessProtocolHandler.cs
- SectionInput.cs
- _FtpDataStream.cs
- PasswordBox.cs
- DataService.cs
- InteropAutomationProvider.cs
- TreeNodeCollection.cs
- ArrayExtension.cs
- ConversionHelper.cs
- ObservableDictionary.cs
- Win32.cs
- TransactionContext.cs
- SocketManager.cs
- IisTraceListener.cs
- AuthenticateEventArgs.cs
- InheritanceAttribute.cs
- FilterEventArgs.cs
- XmlAttributeOverrides.cs
- Selection.cs
- GridPatternIdentifiers.cs
- NativeActivity.cs
- System.Data_BID.cs
- OracleString.cs
- DataReceivedEventArgs.cs
- ActivityTypeResolver.xaml.cs
- ObjectDisposedException.cs
- Rect3D.cs
- ISAPIRuntime.cs
- Rotation3D.cs
- DocumentViewerHelper.cs
- DecimalStorage.cs
- ExpressionPrefixAttribute.cs
- Geometry3D.cs
- SafeNativeMethods.cs
- WindowsStartMenu.cs
- ExpressionBuilder.cs
- XmlObjectSerializerContext.cs