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
- DataControlReferenceCollection.cs
- TaskFormBase.cs
- DataSpaceManager.cs
- LineSegment.cs
- HttpConfigurationContext.cs
- FontNamesConverter.cs
- AvTraceFormat.cs
- InvokePatternIdentifiers.cs
- ReceiveSecurityHeaderElementManager.cs
- PageStatePersister.cs
- VideoDrawing.cs
- TypedColumnHandler.cs
- CharacterShapingProperties.cs
- OverlappedAsyncResult.cs
- CacheForPrimitiveTypes.cs
- QilName.cs
- RoutedPropertyChangedEventArgs.cs
- RuntimeEnvironment.cs
- HandlerFactoryWrapper.cs
- RestHandlerFactory.cs
- PassportPrincipal.cs
- TagMapCollection.cs
- TextRangeEditTables.cs
- _ProxyChain.cs
- Inline.cs
- VarInfo.cs
- DetailsViewUpdateEventArgs.cs
- ProxyRpc.cs
- ItemCollectionEditor.cs
- PeerInvitationResponse.cs
- OleTxTransaction.cs
- CapacityStreamGeometryContext.cs
- SiteMapDataSourceView.cs
- RelationshipNavigation.cs
- TabRenderer.cs
- CodeDOMUtility.cs
- AttributeCollection.cs
- StylusPointProperty.cs
- _AutoWebProxyScriptHelper.cs
- NetworkInformationPermission.cs
- StructuredProperty.cs
- AndCondition.cs
- MouseOverProperty.cs
- ClientUtils.cs
- ProfileModule.cs
- AxHost.cs
- MessageDescription.cs
- Int64.cs
- WaitHandleCannotBeOpenedException.cs
- StructureChangedEventArgs.cs
- StrokeDescriptor.cs
- StylusPointDescription.cs
- DataBinding.cs
- SpnEndpointIdentity.cs
- FixedDocument.cs
- FileResponseElement.cs
- Validator.cs
- ToolTip.cs
- AspNetSynchronizationContext.cs
- WizardForm.cs
- EmptyCollection.cs
- XmlQueryRuntime.cs
- CustomTypeDescriptor.cs
- ImageSource.cs
- SqlConnectionHelper.cs
- GenericEnumerator.cs
- SqlDataSourceRefreshSchemaForm.cs
- DllHostedComPlusServiceHost.cs
- OleDbException.cs
- Comparer.cs
- StylusCollection.cs
- VSWCFServiceContractGenerator.cs
- ListBindableAttribute.cs
- arclist.cs
- Regex.cs
- HttpResponse.cs
- ObjectCacheHost.cs
- WindowsFormsSynchronizationContext.cs
- Deserializer.cs
- BasicAsyncResult.cs
- RuleInfoComparer.cs
- RelationshipNavigation.cs
- HwndStylusInputProvider.cs
- pingexception.cs
- ColumnWidthChangedEvent.cs
- SByteConverter.cs
- PackageRelationship.cs
- ConfigXmlCDataSection.cs
- QilDataSource.cs
- ObjectMemberMapping.cs
- NameValueCollection.cs
- SspiNegotiationTokenAuthenticator.cs
- AnnotationStore.cs
- Opcode.cs
- OleAutBinder.cs
- BooleanStorage.cs
- ControlPager.cs
- AssemblyBuilderData.cs
- KeyManager.cs
- EntitySet.cs