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
- DeobfuscatingStream.cs
- MetadataWorkspace.cs
- ISAPIWorkerRequest.cs
- RijndaelManagedTransform.cs
- ApplicationSecurityInfo.cs
- EmptyCollection.cs
- LowerCaseStringConverter.cs
- ColumnBinding.cs
- ExpandCollapsePatternIdentifiers.cs
- CodeDelegateCreateExpression.cs
- ChannelServices.cs
- XmlSchemaInclude.cs
- TableStyle.cs
- AmbientLight.cs
- ToolStripLabel.cs
- WebPartAuthorizationEventArgs.cs
- DataBindingHandlerAttribute.cs
- HwndSource.cs
- TextBlockAutomationPeer.cs
- ListMarkerLine.cs
- SqlUnionizer.cs
- StorageAssociationTypeMapping.cs
- DataGridViewTextBoxCell.cs
- Transform.cs
- TypeConverterHelper.cs
- ConstraintStruct.cs
- BinaryWriter.cs
- VSWCFServiceContractGenerator.cs
- InternalDuplexBindingElement.cs
- ValidatedMobileControlConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DataSourceControl.cs
- ObjRef.cs
- RequestQueryProcessor.cs
- DocumentXmlWriter.cs
- AppDomain.cs
- RequestNavigateEventArgs.cs
- FlowLayoutPanel.cs
- ACE.cs
- ReflectTypeDescriptionProvider.cs
- LabelLiteral.cs
- UnitySerializationHolder.cs
- _CacheStreams.cs
- SymbolTable.cs
- Listbox.cs
- embossbitmapeffect.cs
- PropertyGridEditorPart.cs
- PersistenceContext.cs
- DataServiceException.cs
- GenericRootAutomationPeer.cs
- PerformanceCounterCategory.cs
- CreateUserWizard.cs
- DataSourceGeneratorException.cs
- PlaceHolder.cs
- TCEAdapterGenerator.cs
- IssuedTokenParametersElement.cs
- SafeNativeMethods.cs
- Propagator.cs
- EntityCommandDefinition.cs
- TraceSource.cs
- wmiutil.cs
- GridViewColumnHeader.cs
- __ComObject.cs
- SqlProvider.cs
- IPGlobalProperties.cs
- Type.cs
- DSASignatureDeformatter.cs
- SafeNativeMethods.cs
- Quad.cs
- WebPartConnectionsDisconnectVerb.cs
- Point4DValueSerializer.cs
- WindowsTreeView.cs
- AuthenticationManager.cs
- RenderTargetBitmap.cs
- UIElementCollection.cs
- WindowsClaimSet.cs
- PropertyValue.cs
- UserInitiatedNavigationPermission.cs
- ScaleTransform3D.cs
- KeyNotFoundException.cs
- XmlRawWriterWrapper.cs
- RawKeyboardInputReport.cs
- followingsibling.cs
- FrameAutomationPeer.cs
- CustomErrorsSectionWrapper.cs
- _SpnDictionary.cs
- ArgumentDesigner.xaml.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WeakEventManager.cs
- _ConnectOverlappedAsyncResult.cs
- XmlnsCompatibleWithAttribute.cs
- BevelBitmapEffect.cs
- path.cs
- VisualStyleRenderer.cs
- DelegateBodyWriter.cs
- SetterBaseCollection.cs
- RequestNavigateEventArgs.cs
- DispatcherTimer.cs
- ConstrainedDataObject.cs
- ProgramNode.cs