Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebResourceAttribute.cs / 1 / WebResourceAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; using System.Web.Util; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebResourceAttribute : Attribute { private string _contentType; private bool _performSubstitution; private string _webResource; public WebResourceAttribute(string webResource, string contentType) { if (String.IsNullOrEmpty(webResource)) { throw ExceptionUtil.ParameterNullOrEmpty("webResource"); } if (String.IsNullOrEmpty(contentType)) { throw ExceptionUtil.ParameterNullOrEmpty("contentType"); } _contentType = contentType; _webResource = webResource; _performSubstitution = false; } public string ContentType { get { return _contentType; } } public bool PerformSubstitution { get { return _performSubstitution; } set { _performSubstitution = value; } } public string WebResource { get { return _webResource; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; using System.Web.Util; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebResourceAttribute : Attribute { private string _contentType; private bool _performSubstitution; private string _webResource; public WebResourceAttribute(string webResource, string contentType) { if (String.IsNullOrEmpty(webResource)) { throw ExceptionUtil.ParameterNullOrEmpty("webResource"); } if (String.IsNullOrEmpty(contentType)) { throw ExceptionUtil.ParameterNullOrEmpty("contentType"); } _contentType = contentType; _webResource = webResource; _performSubstitution = false; } public string ContentType { get { return _contentType; } } public bool PerformSubstitution { get { return _performSubstitution; } set { _performSubstitution = value; } } public string WebResource { get { return _webResource; } } } } // 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
- CompositeFontParser.cs
- ObjectAssociationEndMapping.cs
- IpcChannel.cs
- InvalidateEvent.cs
- MemoryPressure.cs
- RequestCacheManager.cs
- TemplateInstanceAttribute.cs
- BinHexDecoder.cs
- TextTabProperties.cs
- InboundActivityHelper.cs
- ObjectConverter.cs
- DatasetMethodGenerator.cs
- GridViewDeletedEventArgs.cs
- Speller.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- MemberDomainMap.cs
- TextEditorCharacters.cs
- PrinterUnitConvert.cs
- VisualTreeFlattener.cs
- MouseActionValueSerializer.cs
- TreeNodeCollectionEditorDialog.cs
- ObjectDataSourceEventArgs.cs
- ProfessionalColors.cs
- ImageMetadata.cs
- XmlAnyElementAttributes.cs
- SHA256Managed.cs
- Int64KeyFrameCollection.cs
- QueueTransferProtocol.cs
- InnerItemCollectionView.cs
- EventHandlerService.cs
- MediaTimeline.cs
- Int64Converter.cs
- ReservationCollection.cs
- EntityType.cs
- XmlAttribute.cs
- IgnoreFlushAndCloseStream.cs
- LinearGradientBrush.cs
- BitmapFrameDecode.cs
- HttpResponseHeader.cs
- CFGGrammar.cs
- ControlType.cs
- HttpResponseHeader.cs
- KeyToListMap.cs
- webbrowsersite.cs
- WebPartVerb.cs
- RSAPKCS1SignatureDeformatter.cs
- _RequestCacheProtocol.cs
- AutoFocusStyle.xaml.cs
- SettingsProviderCollection.cs
- HttpConfigurationSystem.cs
- DataServiceException.cs
- AnimatedTypeHelpers.cs
- ParameterCollection.cs
- CodeDirectoryCompiler.cs
- FileSecurity.cs
- NullRuntimeConfig.cs
- SettingsPropertyWrongTypeException.cs
- DataRowChangeEvent.cs
- SqlDataReaderSmi.cs
- ParentQuery.cs
- SoapCodeExporter.cs
- PrintPreviewControl.cs
- BlockCollection.cs
- DecimalConstantAttribute.cs
- FontFamily.cs
- ErrorWrapper.cs
- ToolboxItemFilterAttribute.cs
- ProfileSection.cs
- RC2CryptoServiceProvider.cs
- Decimal.cs
- NameValueCollection.cs
- LookupNode.cs
- messageonlyhwndwrapper.cs
- TagNameToTypeMapper.cs
- DrawTreeNodeEventArgs.cs
- SerialPort.cs
- NativeActivityTransactionContext.cs
- NamedPermissionSet.cs
- mediaeventshelper.cs
- Mapping.cs
- NativeMethods.cs
- XmlNamedNodeMap.cs
- PictureBox.cs
- WebPartExportVerb.cs
- XmlExtensionFunction.cs
- UnsafeNetInfoNativeMethods.cs
- DBBindings.cs
- columnmapkeybuilder.cs
- MailDefinitionBodyFileNameEditor.cs
- GrammarBuilderWildcard.cs
- TextTreeRootTextBlock.cs
- Stroke.cs
- FilterException.cs
- WMIGenerator.cs
- CompareValidator.cs
- ToolStripItemImageRenderEventArgs.cs
- PerfService.cs
- dataprotectionpermission.cs
- SmtpException.cs
- AssemblyBuilder.cs