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
- BlurEffect.cs
- WCFBuildProvider.cs
- WindowsFormsLinkLabel.cs
- SimpleHandlerBuildProvider.cs
- XmlTypeMapping.cs
- DefaultWorkflowSchedulerService.cs
- DrawingImage.cs
- EventProvider.cs
- ListViewHitTestInfo.cs
- TraceContext.cs
- PerformanceCounterManager.cs
- EmissiveMaterial.cs
- ThemeDirectoryCompiler.cs
- FileUpload.cs
- HtmlTextArea.cs
- TextParagraph.cs
- EventBuilder.cs
- ListViewContainer.cs
- DynamicDiscoveryDocument.cs
- DispatchProxy.cs
- Stylus.cs
- ByteAnimationUsingKeyFrames.cs
- Baml6ConstructorInfo.cs
- XmlResolver.cs
- DataGrid.cs
- InputBinding.cs
- ItemChangedEventArgs.cs
- ClientSideQueueItem.cs
- DesignerDataRelationship.cs
- CfgParser.cs
- X509ChainPolicy.cs
- Menu.cs
- LostFocusEventManager.cs
- X509CertificateTrustedIssuerElement.cs
- HiddenFieldDesigner.cs
- BindingCollectionElement.cs
- PolyLineSegmentFigureLogic.cs
- Int32CAMarshaler.cs
- ScriptingJsonSerializationSection.cs
- recordstate.cs
- graph.cs
- EarlyBoundInfo.cs
- TemplateControl.cs
- ServerValidateEventArgs.cs
- SqlFileStream.cs
- HttpWriter.cs
- BooleanAnimationBase.cs
- ComponentCache.cs
- FixedDocument.cs
- objectquery_tresulttype.cs
- SqlTriggerAttribute.cs
- TableStyle.cs
- WSDualHttpBindingElement.cs
- State.cs
- PropertyItemInternal.cs
- X509CertificateChain.cs
- PrincipalPermission.cs
- FrameworkTextComposition.cs
- SqlNotificationEventArgs.cs
- TrackingDataItemValue.cs
- ObjectSpanRewriter.cs
- InputBinding.cs
- XPathBinder.cs
- InkCanvasInnerCanvas.cs
- KeyConstraint.cs
- ToggleButton.cs
- BrowserDefinition.cs
- DeclarativeCatalogPart.cs
- InheritedPropertyChangedEventArgs.cs
- HtmlElement.cs
- XamlParser.cs
- CounterCreationData.cs
- StorageComplexPropertyMapping.cs
- WebPartsPersonalizationAuthorization.cs
- UMPAttributes.cs
- ControlBuilderAttribute.cs
- DeclarativeCatalogPart.cs
- QueryCreatedEventArgs.cs
- ChtmlTextWriter.cs
- StorageConditionPropertyMapping.cs
- GridViewColumnHeader.cs
- MasterPage.cs
- LocalizableResourceBuilder.cs
- LoadGrammarCompletedEventArgs.cs
- SourceFileInfo.cs
- Command.cs
- GenericRootAutomationPeer.cs
- FrameworkTemplate.cs
- GridViewUpdateEventArgs.cs
- DesignRelationCollection.cs
- ScriptResourceDefinition.cs
- WebSysDefaultValueAttribute.cs
- AppearanceEditorPart.cs
- RolePrincipal.cs
- DataList.cs
- IntSecurity.cs
- EntityExpressionVisitor.cs
- InvokeHandlers.cs
- DataGridViewCellEventArgs.cs
- DataGridViewHitTestInfo.cs