Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TypedReference.cs
- RuleSettings.cs
- SafeHandle.cs
- EditorAttributeInfo.cs
- CacheEntry.cs
- RichTextBox.cs
- ObjectDataSourceFilteringEventArgs.cs
- RegexBoyerMoore.cs
- ExecutionContext.cs
- DataKeyCollection.cs
- HttpListenerPrefixCollection.cs
- XmlSchemaImport.cs
- FrameworkElementFactoryMarkupObject.cs
- JournalEntryListConverter.cs
- TreeNode.cs
- ThemeDictionaryExtension.cs
- XmlCharType.cs
- IpcServerChannel.cs
- XmlElementAttributes.cs
- TheQuery.cs
- TreeViewBindingsEditorForm.cs
- FunctionImportMapping.cs
- Operand.cs
- MultiPageTextView.cs
- XPathMessageFilterElementCollection.cs
- InputLanguageSource.cs
- _NativeSSPI.cs
- ApplicationFileParser.cs
- CompositeScriptReferenceEventArgs.cs
- TemplateBuilder.cs
- XsltInput.cs
- DataSourceHelper.cs
- ObjectContext.cs
- NotificationContext.cs
- SoapCodeExporter.cs
- SortDescriptionCollection.cs
- BaseEntityWrapper.cs
- NetSectionGroup.cs
- ButtonFlatAdapter.cs
- ByteAnimationBase.cs
- PropertyInformationCollection.cs
- WebBrowsableAttribute.cs
- XmlSchemaInferenceException.cs
- ContextStack.cs
- ArrayElementGridEntry.cs
- Substitution.cs
- ListViewGroupItemCollection.cs
- UTF7Encoding.cs
- ConfigXmlSignificantWhitespace.cs
- TaskForm.cs
- SqlDataSourceDesigner.cs
- AppDomainUnloadedException.cs
- QEncodedStream.cs
- InfocardExtendedInformationEntry.cs
- PathData.cs
- Vector.cs
- ToolStripLocationCancelEventArgs.cs
- TreePrinter.cs
- ThicknessConverter.cs
- SizeAnimationUsingKeyFrames.cs
- TextEditorContextMenu.cs
- PhysicalFontFamily.cs
- BrowserCapabilitiesFactory.cs
- SrgsDocument.cs
- BuildProviderUtils.cs
- COM2IDispatchConverter.cs
- SecurityUtils.cs
- PenContext.cs
- MetadataFile.cs
- SqlDataSourceQueryEditorForm.cs
- ObjectItemAttributeAssemblyLoader.cs
- ScriptRegistrationManager.cs
- MatrixAnimationBase.cs
- XmlParser.cs
- SelectedGridItemChangedEvent.cs
- ProcessModule.cs
- StylusPointProperties.cs
- IisTraceListener.cs
- OleDbMetaDataFactory.cs
- QueryCacheManager.cs
- UIntPtr.cs
- webclient.cs
- RuntimeComponentFilter.cs
- DesignerSelectionListAdapter.cs
- DBSqlParserTable.cs
- WindowHideOrCloseTracker.cs
- EventLogger.cs
- SemanticResolver.cs
- MemberDescriptor.cs
- MemberAssignment.cs
- FlowchartDesigner.xaml.cs
- ThrowHelper.cs
- StrongNameIdentityPermission.cs
- __FastResourceComparer.cs
- SchemaNames.cs
- updatecommandorderer.cs
- TreeNodeBindingCollection.cs
- CroppedBitmap.cs
- Version.cs
- ReferenceSchema.cs