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
- RoutingEndpointTrait.cs
- ScriptComponentDescriptor.cs
- IdentityModelStringsVersion1.cs
- SizeConverter.cs
- WorkflowMessageEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- Module.cs
- CheckableControlBaseAdapter.cs
- Pkcs7Recipient.cs
- Operand.cs
- FontInfo.cs
- WorkingDirectoryEditor.cs
- RowCache.cs
- Parser.cs
- PaperSource.cs
- Vector3D.cs
- Propagator.cs
- PeerUnsafeNativeCryptMethods.cs
- EllipseGeometry.cs
- AppDomainInfo.cs
- CommandBinding.cs
- Substitution.cs
- ObjectConverter.cs
- ParallelTimeline.cs
- SQLUtility.cs
- webclient.cs
- CachedTypeface.cs
- BindingExpressionBase.cs
- AesManaged.cs
- ListViewItemSelectionChangedEvent.cs
- TagMapCollection.cs
- SqlDataSourceCommandParser.cs
- WsatServiceAddress.cs
- DataGridViewColumnConverter.cs
- PKCS1MaskGenerationMethod.cs
- ObjectComplexPropertyMapping.cs
- EncoderNLS.cs
- XpsSerializerWriter.cs
- initElementDictionary.cs
- ActiveXHelper.cs
- XmlChildEnumerator.cs
- XPathParser.cs
- ConfigXmlComment.cs
- WindowsGraphicsCacheManager.cs
- CompoundFileStreamReference.cs
- EndPoint.cs
- arabicshape.cs
- FileFormatException.cs
- MessageQueuePermission.cs
- CompoundFileDeflateTransform.cs
- TypeBuilder.cs
- ShutDownListener.cs
- CapabilitiesPattern.cs
- SystemIPInterfaceProperties.cs
- PrintEvent.cs
- MethodBuilderInstantiation.cs
- ListViewGroupItemCollection.cs
- ProviderCommandInfoUtils.cs
- TableRowGroup.cs
- FixUp.cs
- Oid.cs
- MetadataSource.cs
- UriWriter.cs
- ApplyImportsAction.cs
- TableHeaderCell.cs
- WorkflowInstanceQuery.cs
- XmlQueryStaticData.cs
- UmAlQuraCalendar.cs
- TextEditorDragDrop.cs
- Mappings.cs
- Calendar.cs
- TokenFactoryCredential.cs
- ProcessProtocolHandler.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ToolboxComponentsCreatedEventArgs.cs
- AppSettingsExpressionBuilder.cs
- XmlWriter.cs
- BitmapCodecInfo.cs
- updateconfighost.cs
- WebPartEditorOkVerb.cs
- ViewPort3D.cs
- InvalidCommandTreeException.cs
- WindowsButton.cs
- DataTransferEventArgs.cs
- PartEditor.cs
- Command.cs
- DictionaryContent.cs
- ObjectDataSource.cs
- Rect3D.cs
- ConfigurationValidatorAttribute.cs
- GlyphTypeface.cs
- UrlMappingCollection.cs
- LoginName.cs
- HeaderedContentControl.cs
- Baml6Assembly.cs
- securitycriticaldata.cs
- LinqDataView.cs
- HandlerBase.cs
- CaseInsensitiveHashCodeProvider.cs
- VisualStyleTypesAndProperties.cs