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
- ThreadAttributes.cs
- SoapServerMessage.cs
- ListViewItemMouseHoverEvent.cs
- XsltSettings.cs
- FileLogRecordStream.cs
- BaseDataListActionList.cs
- FrameDimension.cs
- ProgressBarHighlightConverter.cs
- DiscreteKeyFrames.cs
- CustomAttributeBuilder.cs
- EventLogQuery.cs
- SetStoryboardSpeedRatio.cs
- BaseServiceProvider.cs
- ApplicationInfo.cs
- AttachedAnnotationChangedEventArgs.cs
- PersonalizationStateInfoCollection.cs
- PersonalizationEntry.cs
- BamlBinaryReader.cs
- XPathNavigator.cs
- DataGridViewRowHeaderCell.cs
- WorkflowMarkupSerializerMapping.cs
- SimpleBitVector32.cs
- tooltip.cs
- SpotLight.cs
- PeerCollaborationPermission.cs
- BmpBitmapDecoder.cs
- CardSpaceSelector.cs
- XmlIncludeAttribute.cs
- StorageAssociationSetMapping.cs
- ToolStripScrollButton.cs
- X509Extension.cs
- ErrorHandler.cs
- DataGridViewRow.cs
- TextControlDesigner.cs
- ListBase.cs
- ObjectDataSourceMethodEventArgs.cs
- ReadContentAsBinaryHelper.cs
- CategoriesDocumentFormatter.cs
- Types.cs
- TimelineGroup.cs
- TabletDevice.cs
- SystemIPInterfaceProperties.cs
- SchemaLookupTable.cs
- CodeCompileUnit.cs
- MimeMultiPart.cs
- CodeDomSerializationProvider.cs
- TempFiles.cs
- ExtensionQuery.cs
- SqlReorderer.cs
- OperandQuery.cs
- RadioButtonStandardAdapter.cs
- XmlDeclaration.cs
- ProcessHostMapPath.cs
- DependencyPropertyKind.cs
- XamlClipboardData.cs
- DocobjHost.cs
- IdentifierService.cs
- MenuItemStyleCollection.cs
- RegexNode.cs
- CqlGenerator.cs
- EntryPointNotFoundException.cs
- TcpAppDomainProtocolHandler.cs
- x509store.cs
- ConfigurationProperty.cs
- SecureEnvironment.cs
- Parameter.cs
- TypedColumnHandler.cs
- EntityContainerEmitter.cs
- DrawingContextWalker.cs
- HttpDictionary.cs
- KeyValueSerializer.cs
- SqlDataSourceStatusEventArgs.cs
- ModifierKeysConverter.cs
- Dictionary.cs
- ElementUtil.cs
- TdsParserStateObject.cs
- ToolStripItemEventArgs.cs
- XmlToDatasetMap.cs
- TCPClient.cs
- XomlCompilerHelpers.cs
- DbgUtil.cs
- RowCache.cs
- WebConfigurationHostFileChange.cs
- View.cs
- XmlRootAttribute.cs
- NamedElement.cs
- TextTreeObjectNode.cs
- InstanceDescriptor.cs
- ActivityPreviewDesigner.cs
- PointLightBase.cs
- RequestResponse.cs
- ControlPager.cs
- ReadOnlyState.cs
- XmlExceptionHelper.cs
- EventMappingSettingsCollection.cs
- HyperLinkStyle.cs
- webbrowsersite.cs
- KnownTypesProvider.cs
- TableChangeProcessor.cs
- AxHost.cs