Code:
/ DotNET / DotNET / 8.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
- WebConfigurationHost.cs
- X509UI.cs
- EntityModelBuildProvider.cs
- ForceCopyBuildProvider.cs
- Processor.cs
- SystemWebExtensionsSectionGroup.cs
- UiaCoreApi.cs
- FormViewInsertedEventArgs.cs
- DefaultTextStoreTextComposition.cs
- AddingNewEventArgs.cs
- ResetableIterator.cs
- MessageTransmitTraceRecord.cs
- PropertyDescriptorGridEntry.cs
- RuntimeConfigLKG.cs
- SurrogateDataContract.cs
- ProcessingInstructionAction.cs
- UshortList2.cs
- InternalConfigRoot.cs
- CodeGen.cs
- SurrogateSelector.cs
- RubberbandSelector.cs
- XslException.cs
- IndexingContentUnit.cs
- TypeBinaryExpression.cs
- Helpers.cs
- StringInfo.cs
- Pen.cs
- SQLBytesStorage.cs
- ValidationErrorEventArgs.cs
- _FtpControlStream.cs
- SystemThemeKey.cs
- MouseOverProperty.cs
- Queue.cs
- FormsAuthenticationUserCollection.cs
- Converter.cs
- SystemIPGlobalStatistics.cs
- Stylus.cs
- DataObjectCopyingEventArgs.cs
- EntityWrapper.cs
- TransactionFlowProperty.cs
- RoutedEventHandlerInfo.cs
- EnumValAlphaComparer.cs
- AccessDataSourceDesigner.cs
- BitmapFrame.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- HyperLinkField.cs
- WinFormsSecurity.cs
- QilSortKey.cs
- TextTreeExtractElementUndoUnit.cs
- WebBrowserProgressChangedEventHandler.cs
- DBPropSet.cs
- dataobject.cs
- ProfilePropertyMetadata.cs
- __ComObject.cs
- SmiMetaData.cs
- LambdaCompiler.Unary.cs
- DesignTimeTemplateParser.cs
- LinkClickEvent.cs
- DataBindEngine.cs
- AsyncPostBackTrigger.cs
- SoapSchemaMember.cs
- CompositeFontFamily.cs
- HashJoinQueryOperatorEnumerator.cs
- FacetEnabledSchemaElement.cs
- ObjectConverter.cs
- RawUIStateInputReport.cs
- FormViewUpdatedEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- SectionInput.cs
- Input.cs
- EditingCoordinator.cs
- EtwTrace.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- FixedMaxHeap.cs
- FacetValueContainer.cs
- Mouse.cs
- ConfigurationErrorsException.cs
- PackagingUtilities.cs
- GroupDescription.cs
- GrammarBuilderBase.cs
- DoubleUtil.cs
- SparseMemoryStream.cs
- CqlLexer.cs
- DirectoryObjectSecurity.cs
- FrugalList.cs
- WS2007FederationHttpBinding.cs
- ObjectQuery.cs
- WebCategoryAttribute.cs
- XmlNamedNodeMap.cs
- BindingNavigator.cs
- FtpRequestCacheValidator.cs
- DesignTimeXamlWriter.cs
- FormDesigner.cs
- ZipIOCentralDirectoryFileHeader.cs
- CodeDOMProvider.cs
- PeerTransportBindingElement.cs
- ProgressiveCrcCalculatingStream.cs
- ObjectViewEntityCollectionData.cs
- DiscoveryEndpointValidator.cs
- OleDbConnection.cs