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
- Executor.cs
- TableFieldsEditor.cs
- Bidi.cs
- ParserContext.cs
- SimpleTableProvider.cs
- MissingFieldException.cs
- Visual3D.cs
- TrackBar.cs
- TokenCreationException.cs
- PackagePartCollection.cs
- MethodExpr.cs
- GenericUriParser.cs
- C14NUtil.cs
- WmiInstallComponent.cs
- XsdDataContractExporter.cs
- Rotation3DKeyFrameCollection.cs
- CustomError.cs
- PointCollection.cs
- WinFormsComponentEditor.cs
- MenuItemStyleCollection.cs
- PermissionSet.cs
- StatusBar.cs
- GroupBox.cs
- ArgumentReference.cs
- ConnectionProviderAttribute.cs
- PlatformNotSupportedException.cs
- AppSettingsReader.cs
- EUCJPEncoding.cs
- FileDialogCustomPlacesCollection.cs
- IgnorePropertiesAttribute.cs
- ListViewGroupItemCollection.cs
- UnaryExpression.cs
- XPathItem.cs
- SqlProfileProvider.cs
- ItemsPanelTemplate.cs
- WorkItem.cs
- SchemaImporterExtensionElementCollection.cs
- WindowsStartMenu.cs
- LineProperties.cs
- Unit.cs
- XmlPreloadedResolver.cs
- DbConnectionInternal.cs
- ConfigurationStrings.cs
- VoiceObjectToken.cs
- RequestNavigateEventArgs.cs
- UpdateRecord.cs
- RelationshipNavigation.cs
- Expression.cs
- PointCollectionConverter.cs
- DbConnectionClosed.cs
- MessageFilterException.cs
- ReachDocumentSequenceSerializer.cs
- ToolStripCollectionEditor.cs
- CallbackException.cs
- DoubleLinkListEnumerator.cs
- Rule.cs
- LocalizationParserHooks.cs
- WebBaseEventKeyComparer.cs
- DiscoveryMessageSequence.cs
- TagPrefixAttribute.cs
- TraversalRequest.cs
- SqlAliaser.cs
- ManagementBaseObject.cs
- TemplateXamlParser.cs
- XmlWhitespace.cs
- ResXResourceWriter.cs
- AssemblyBuilderData.cs
- CompatibleIComparer.cs
- EventArgs.cs
- XPathArrayIterator.cs
- XmlHierarchyData.cs
- List.cs
- PartialCachingControl.cs
- SafePointer.cs
- KeyValuePair.cs
- AccessViolationException.cs
- ConstNode.cs
- CompositeCollection.cs
- LineServicesRun.cs
- Error.cs
- XsdBuilder.cs
- MailWebEventProvider.cs
- AdornerHitTestResult.cs
- TextAnchor.cs
- FixedSOMElement.cs
- StringWriter.cs
- Vector3DKeyFrameCollection.cs
- FontNamesConverter.cs
- RolePrincipal.cs
- ModelFunctionTypeElement.cs
- DBPropSet.cs
- JulianCalendar.cs
- DataReceivedEventArgs.cs
- EditModeSwitchButton.cs
- SqlRowUpdatedEvent.cs
- COM2ComponentEditor.cs
- PaperSource.cs
- ResourcesGenerator.cs
- ImmutableDispatchRuntime.cs
- IndexOutOfRangeException.cs