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
- SchemaEntity.cs
- MappingItemCollection.cs
- BaseTemplateBuildProvider.cs
- QueryCacheManager.cs
- IOException.cs
- UrlParameterReader.cs
- FileNameEditor.cs
- SkipStoryboardToFill.cs
- SafeNativeMethods.cs
- FeatureManager.cs
- CheckBoxFlatAdapter.cs
- BasicHttpBindingCollectionElement.cs
- TransformerInfoCollection.cs
- GeneralTransform.cs
- ToolboxItemAttribute.cs
- HttpHandlerActionCollection.cs
- EndpointReference.cs
- HtmlContainerControl.cs
- BitVec.cs
- SecurityBindingElement.cs
- Grammar.cs
- SqlDataSourceSelectingEventArgs.cs
- ConstrainedGroup.cs
- JournalEntry.cs
- EntityDesignerDataSourceView.cs
- GeneralTransformGroup.cs
- WindowsGraphics2.cs
- EntityTypeEmitter.cs
- RelationshipSet.cs
- PropertyAccessVisitor.cs
- AttachmentService.cs
- VirtualizingPanel.cs
- UpdateProgress.cs
- TrustLevel.cs
- QueryExpression.cs
- Line.cs
- SelfIssuedAuthAsymmetricKey.cs
- MobilePage.cs
- ElementsClipboardData.cs
- Task.cs
- SQLChars.cs
- Parser.cs
- MessageQueueKey.cs
- XmlNodeChangedEventArgs.cs
- COM2FontConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SystemWebCachingSectionGroup.cs
- DBDataPermission.cs
- ListBoxItemAutomationPeer.cs
- CompletionProxy.cs
- ExpressionList.cs
- Privilege.cs
- RecordsAffectedEventArgs.cs
- CodeAccessSecurityEngine.cs
- DropTarget.cs
- XslCompiledTransform.cs
- Expressions.cs
- DatagridviewDisplayedBandsData.cs
- Propagator.JoinPropagator.cs
- Imaging.cs
- SqlDataRecord.cs
- AssociationProvider.cs
- MsdtcWrapper.cs
- SessionStateItemCollection.cs
- WebPartVerbCollection.cs
- DataGridViewCellConverter.cs
- CqlBlock.cs
- ContextItem.cs
- CollectionBuilder.cs
- Ppl.cs
- XmlEventCache.cs
- StaticSiteMapProvider.cs
- NumericUpDownAccelerationCollection.cs
- FontStretch.cs
- Journal.cs
- XmlMembersMapping.cs
- InterleavedZipPartStream.cs
- StringConcat.cs
- UITypeEditor.cs
- X509CertificateRecipientClientCredential.cs
- DockPanel.cs
- Padding.cs
- Deflater.cs
- ToolStripPanelRenderEventArgs.cs
- InputChannelAcceptor.cs
- control.ime.cs
- DataBindingList.cs
- AsymmetricSignatureFormatter.cs
- WebServiceClientProxyGenerator.cs
- PartBasedPackageProperties.cs
- InsufficientMemoryException.cs
- DesigntimeLicenseContext.cs
- ImplicitInputBrush.cs
- GestureRecognizer.cs
- WebPartCancelEventArgs.cs
- PrintEvent.cs
- SoapInteropTypes.cs
- SecurityRuntime.cs
- InternalsVisibleToAttribute.cs
- HandlerBase.cs