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
- BitmapScalingModeValidation.cs
- StorageEntityTypeMapping.cs
- ServiceContractListItem.cs
- DataGridPagerStyle.cs
- MbpInfo.cs
- SvcMapFileLoader.cs
- FlowchartDesigner.Helpers.cs
- TriggerAction.cs
- DBNull.cs
- Rule.cs
- MSHTMLHost.cs
- CommandID.cs
- cryptoapiTransform.cs
- ExtensionQuery.cs
- HttpConfigurationContext.cs
- AppModelKnownContentFactory.cs
- WebMessageFormatHelper.cs
- WebPartCatalogCloseVerb.cs
- SqlColumnizer.cs
- DurableInstanceProvider.cs
- ToolStripItemClickedEventArgs.cs
- SplashScreenNativeMethods.cs
- ValidatorCollection.cs
- LiteralControl.cs
- ExecutionContext.cs
- QilInvokeLateBound.cs
- RelationshipManager.cs
- PagedDataSource.cs
- DataColumnMapping.cs
- PublishLicense.cs
- AxHost.cs
- HtmlControl.cs
- FontDialog.cs
- DataGridViewTextBoxEditingControl.cs
- OdbcParameter.cs
- TimeoutConverter.cs
- cookiecollection.cs
- WebPartDisplayModeCollection.cs
- COAUTHIDENTITY.cs
- PermissionAttributes.cs
- ExternalException.cs
- SignerInfo.cs
- ButtonField.cs
- Stackframe.cs
- BuildProvidersCompiler.cs
- OleDbException.cs
- SourceFileBuildProvider.cs
- PenThread.cs
- RadioButtonBaseAdapter.cs
- UserControlAutomationPeer.cs
- CorruptingExceptionCommon.cs
- Viewport2DVisual3D.cs
- CodeDomDesignerLoader.cs
- ScalarType.cs
- WebScriptEnablingElement.cs
- EmbeddedMailObjectsCollection.cs
- __Error.cs
- PreviousTrackingServiceAttribute.cs
- KnownTypesHelper.cs
- LineServicesRun.cs
- LogSwitch.cs
- KeyValueSerializer.cs
- InputReferenceExpression.cs
- Imaging.cs
- WindowsListViewScroll.cs
- WebPartManager.cs
- DataGridViewTopRowAccessibleObject.cs
- MergeEnumerator.cs
- XmlSignatureProperties.cs
- TableSectionStyle.cs
- LoginCancelEventArgs.cs
- TreeBuilder.cs
- MaxMessageSizeStream.cs
- Int32Rect.cs
- ComplexTypeEmitter.cs
- TogglePattern.cs
- SqlBulkCopy.cs
- RoutingSection.cs
- X509ImageLogo.cs
- EventQueueState.cs
- VariableQuery.cs
- Variable.cs
- ViewValidator.cs
- SecurityDescriptor.cs
- InfoCardSymmetricAlgorithm.cs
- HwndSubclass.cs
- VisualBasicSettingsHandler.cs
- StorageEntityTypeMapping.cs
- DeclarativeExpressionConditionDeclaration.cs
- CatalogZoneBase.cs
- ConditionalWeakTable.cs
- ReflectionTypeLoadException.cs
- SolidBrush.cs
- XmlSchemaSimpleTypeList.cs
- DocumentCollection.cs
- AnimatedTypeHelpers.cs
- DecimalAnimationBase.cs
- DescendantOverDescendantQuery.cs
- XamlToRtfParser.cs
- COM2IProvidePropertyBuilderHandler.cs