Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FragmentQuery.cs
- AppSettingsExpressionBuilder.cs
- XmlSchemaAnyAttribute.cs
- EntityTypeEmitter.cs
- FormatterServicesNoSerializableCheck.cs
- HwndTarget.cs
- CookielessHelper.cs
- TypeDefinition.cs
- WebPartUtil.cs
- MarkupWriter.cs
- TemplateInstanceAttribute.cs
- ObjectStorage.cs
- EdmPropertyAttribute.cs
- DateTimeConstantAttribute.cs
- WindowsBrush.cs
- DataGridViewTextBoxCell.cs
- XmlAttributeCollection.cs
- PinnedBufferMemoryStream.cs
- DataGridViewBand.cs
- TreeWalkHelper.cs
- Int32Rect.cs
- ChannelDispatcher.cs
- CodeExpressionCollection.cs
- LinqToSqlWrapper.cs
- UnsafeNativeMethodsTablet.cs
- TileBrush.cs
- OracleString.cs
- TextParagraphCache.cs
- ComponentManagerBroker.cs
- Constraint.cs
- FileBasedResourceGroveler.cs
- lengthconverter.cs
- FileCodeGroup.cs
- TraceListeners.cs
- RegionInfo.cs
- TraceSwitch.cs
- RadioButtonFlatAdapter.cs
- ObjectDataSourceStatusEventArgs.cs
- EventSourceCreationData.cs
- PenThreadPool.cs
- ObfuscateAssemblyAttribute.cs
- DbReferenceCollection.cs
- DocumentCollection.cs
- MemoryFailPoint.cs
- XPathChildIterator.cs
- CodeDomLocalizationProvider.cs
- DataControlPagerLinkButton.cs
- WindowPattern.cs
- StrongNameKeyPair.cs
- ControlCachePolicy.cs
- ModuleBuilder.cs
- DataSetSchema.cs
- CodeDelegateCreateExpression.cs
- TypeAccessException.cs
- DataListItemEventArgs.cs
- Avt.cs
- WebPartMinimizeVerb.cs
- DataSourceProvider.cs
- MarkupCompiler.cs
- GenericIdentity.cs
- XmlChoiceIdentifierAttribute.cs
- CommentEmitter.cs
- RangeContentEnumerator.cs
- HwndHostAutomationPeer.cs
- Ref.cs
- ClientApiGenerator.cs
- HttpStreamXmlDictionaryWriter.cs
- XmlDomTextWriter.cs
- DataListItemEventArgs.cs
- ExpressionLexer.cs
- ExpressionList.cs
- FilterFactory.cs
- ResXResourceReader.cs
- SoapSchemaExporter.cs
- TypeConverterHelper.cs
- SRGSCompiler.cs
- IISUnsafeMethods.cs
- EntityDataSourceValidationException.cs
- ThousandthOfEmRealDoubles.cs
- ApplicationActivator.cs
- WindowsTreeView.cs
- ReceiveActivityDesignerTheme.cs
- AssemblyNameProxy.cs
- DelayedRegex.cs
- DataRelation.cs
- ParseHttpDate.cs
- Normalization.cs
- PassportIdentity.cs
- OutputCacheSection.cs
- HttpCachePolicy.cs
- WsdlEndpointConversionContext.cs
- PageCatalogPart.cs
- TextElementCollection.cs
- MediaEntryAttribute.cs
- HelloMessageApril2005.cs
- StorageMappingItemCollection.cs
- RegexGroupCollection.cs
- DrawingGroupDrawingContext.cs
- DataListItemCollection.cs
- BaseValidator.cs