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
- ReferencedCategoriesDocument.cs
- TemplatedMailWebEventProvider.cs
- Serializer.cs
- ToolboxComponentsCreatedEventArgs.cs
- SendingRequestEventArgs.cs
- DbConnectionPoolIdentity.cs
- SqlClientFactory.cs
- TraceData.cs
- SafeHandle.cs
- OrthographicCamera.cs
- OracleMonthSpan.cs
- SecurityContext.cs
- MethodRental.cs
- Matrix3D.cs
- DataGridRow.cs
- TextEncodedRawTextWriter.cs
- CheckBoxList.cs
- Style.cs
- SmtpLoginAuthenticationModule.cs
- EmptyReadOnlyDictionaryInternal.cs
- HMACRIPEMD160.cs
- HtmlTableCellCollection.cs
- XmlWrappingReader.cs
- EntitySet.cs
- WebBrowserProgressChangedEventHandler.cs
- PolicyImporterElementCollection.cs
- DefaultProxySection.cs
- Char.cs
- RawAppCommandInputReport.cs
- ScriptingJsonSerializationSection.cs
- XmlTypeAttribute.cs
- EntityProviderServices.cs
- UnknownWrapper.cs
- LinqDataSourceSelectEventArgs.cs
- ParseElementCollection.cs
- TcpPortSharing.cs
- CompilerScopeManager.cs
- ErrorWrapper.cs
- XslTransform.cs
- MimeBasePart.cs
- CodeFieldReferenceExpression.cs
- OleDbFactory.cs
- DependencyObjectProvider.cs
- RefreshEventArgs.cs
- XPathConvert.cs
- XmlDomTextWriter.cs
- AssociationTypeEmitter.cs
- RuntimeConfigurationRecord.cs
- C14NUtil.cs
- Pkcs7Recipient.cs
- ServiceBuildProvider.cs
- ProcessManager.cs
- TextChange.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- MouseOverProperty.cs
- DefaultSection.cs
- KnownBoxes.cs
- TextContainerHelper.cs
- ADMembershipUser.cs
- CancellationState.cs
- SHA1CryptoServiceProvider.cs
- DrawToolTipEventArgs.cs
- ConstrainedDataObject.cs
- _NegoStream.cs
- UncommonField.cs
- DoubleStorage.cs
- GridViewPageEventArgs.cs
- CalendarDay.cs
- DateTimeValueSerializerContext.cs
- TableCellCollection.cs
- TdsParameterSetter.cs
- NativeMethods.cs
- webproxy.cs
- Int32CAMarshaler.cs
- XamlSerializationHelper.cs
- AccessDataSource.cs
- GenericParameterDataContract.cs
- CompilerParameters.cs
- DeferredElementTreeState.cs
- PropertyConverter.cs
- TabPanel.cs
- Header.cs
- GeneralTransform3DGroup.cs
- FormattedTextSymbols.cs
- ObjectItemLoadingSessionData.cs
- UIElement3D.cs
- DataRow.cs
- AttributeData.cs
- AbsoluteQuery.cs
- HMACMD5.cs
- ClientScriptManager.cs
- DataControlField.cs
- ColumnWidthChangingEvent.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CornerRadius.cs
- ClusterRegistryConfigurationProvider.cs
- SqlVersion.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ScheduleChanges.cs
- LexicalChunk.cs