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
- Matrix3DValueSerializer.cs
- OdbcParameter.cs
- AttachmentCollection.cs
- Debug.cs
- OdbcRowUpdatingEvent.cs
- ScaleTransform.cs
- AspProxy.cs
- WindowsAltTab.cs
- OdbcReferenceCollection.cs
- LoginName.cs
- CancelEventArgs.cs
- DragDeltaEventArgs.cs
- FreezableDefaultValueFactory.cs
- SettingsPropertyNotFoundException.cs
- ChannelServices.cs
- ChangePasswordAutoFormat.cs
- DefaultTraceListener.cs
- DbExpressionRules.cs
- XmlAttribute.cs
- Inline.cs
- XmlQualifiedNameTest.cs
- DbSetClause.cs
- EntityDataSource.cs
- PagerStyle.cs
- OdbcConnectionHandle.cs
- RuntimeConfig.cs
- BooleanToVisibilityConverter.cs
- NetworkInterface.cs
- elementinformation.cs
- Int64Storage.cs
- Instrumentation.cs
- InstanceCreationEditor.cs
- FixedDSBuilder.cs
- Matrix3D.cs
- RTTypeWrapper.cs
- FileRegion.cs
- SplitContainerDesigner.cs
- TreeView.cs
- FileAuthorizationModule.cs
- AstNode.cs
- RenderingEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- CrossAppDomainChannel.cs
- RNGCryptoServiceProvider.cs
- SolidColorBrush.cs
- ObfuscateAssemblyAttribute.cs
- AutomationAttributeInfo.cs
- CustomAttributeSerializer.cs
- Parser.cs
- UIElementCollection.cs
- WindowsFormsLinkLabel.cs
- BigIntegerStorage.cs
- CheckBox.cs
- ConfigXmlDocument.cs
- CodeTypeOfExpression.cs
- nulltextcontainer.cs
- SolidBrush.cs
- TraceProvider.cs
- DataControlImageButton.cs
- DataContractSet.cs
- AuthenticatedStream.cs
- SqlClientPermission.cs
- XmlException.cs
- GridViewUpdatedEventArgs.cs
- DriveNotFoundException.cs
- TypeSystemProvider.cs
- EntityDataSourceWizardForm.cs
- XsltException.cs
- SystemColors.cs
- Manipulation.cs
- JournalNavigationScope.cs
- StorageEntityContainerMapping.cs
- SqlMethodTransformer.cs
- ExecutionEngineException.cs
- ViewBox.cs
- SqlTriggerContext.cs
- DecimalConstantAttribute.cs
- Encoder.cs
- AudioFormatConverter.cs
- WeakEventTable.cs
- DataGridViewImageCell.cs
- ByteAnimation.cs
- ResourceReader.cs
- UrlPath.cs
- PerCallInstanceContextProvider.cs
- StateDesigner.LayoutSelectionGlyph.cs
- Char.cs
- ButtonBase.cs
- ExtendLockAsyncResult.cs
- CompositionAdorner.cs
- ConsumerConnectionPoint.cs
- FileDetails.cs
- X509SecurityTokenAuthenticator.cs
- CodeExporter.cs
- WorkflowInstanceRecord.cs
- KnowledgeBase.cs
- OdbcConnectionPoolProviderInfo.cs
- NegotiateStream.cs
- BufferedGraphicsManager.cs
- WebSysDefaultValueAttribute.cs