Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrimSurroundingWhitespaceAttribute.cs
- DataColumnCollection.cs
- Mouse.cs
- ObjectRef.cs
- Formatter.cs
- AsyncSerializedWorker.cs
- XmlCharType.cs
- FileClassifier.cs
- WCFServiceClientProxyGenerator.cs
- ColumnHeader.cs
- NativeMethods.cs
- Transactions.cs
- WebUtil.cs
- EventProvider.cs
- FlatButtonAppearance.cs
- DataTemplateKey.cs
- TrustSection.cs
- WebConfigurationFileMap.cs
- DataStreamFromComStream.cs
- RNGCryptoServiceProvider.cs
- WebPartsSection.cs
- MenuAdapter.cs
- RuntimeIdentifierPropertyAttribute.cs
- GuidelineSet.cs
- RenamedEventArgs.cs
- DiscreteKeyFrames.cs
- DataGridViewCellStyleEditor.cs
- GridItem.cs
- OdbcConnectionHandle.cs
- loginstatus.cs
- FormatterServices.cs
- DbConnectionStringCommon.cs
- PackagePart.cs
- StylusButton.cs
- VirtualizedItemPattern.cs
- CodeMemberProperty.cs
- DrawingContextDrawingContextWalker.cs
- MultiView.cs
- ResXBuildProvider.cs
- QuerySettings.cs
- MarshalByRefObject.cs
- LookupBindingPropertiesAttribute.cs
- Int64Storage.cs
- SqlUtils.cs
- DetailsViewRow.cs
- NativeMethods.cs
- ConfigurationSectionHelper.cs
- TemplateKey.cs
- WebBrowsableAttribute.cs
- XmlHelper.cs
- ControlPaint.cs
- Stackframe.cs
- XmlUTF8TextWriter.cs
- FixedFindEngine.cs
- StringKeyFrameCollection.cs
- LayeredChannelListener.cs
- TableLayoutPanelResizeGlyph.cs
- DetailsViewDeleteEventArgs.cs
- DateTimeConverter.cs
- WindowsPen.cs
- _UriSyntax.cs
- SoapAttributes.cs
- RepeatButtonAutomationPeer.cs
- ScrollEventArgs.cs
- updateconfighost.cs
- PropertyKey.cs
- TemplateKeyConverter.cs
- ClientRuntimeConfig.cs
- DesignerMetadata.cs
- QuaternionConverter.cs
- BitmapEffectInputData.cs
- OrderedDictionaryStateHelper.cs
- ExpressionDumper.cs
- CursorConverter.cs
- PersonalizationAdministration.cs
- DataQuery.cs
- UxThemeWrapper.cs
- TypeValidationEventArgs.cs
- Processor.cs
- URLAttribute.cs
- CodeAttributeArgument.cs
- oledbmetadatacolumnnames.cs
- EventItfInfo.cs
- LassoHelper.cs
- DataKeyCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- TextLine.cs
- SqlCacheDependencySection.cs
- GridViewRowPresenter.cs
- DataGridCellInfo.cs
- HtmlTable.cs
- Point3D.cs
- BindingBase.cs
- EntityClientCacheEntry.cs
- PerformanceCounterLib.cs
- SqlBinder.cs
- AQNBuilder.cs
- Regex.cs
- FunctionImportElement.cs
- ArgumentsParser.cs