Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Translator.cs
- SizeAnimation.cs
- WebPartUserCapability.cs
- RequestDescription.cs
- TypeConverterAttribute.cs
- ReferencedCollectionType.cs
- HttpWebResponse.cs
- SaveFileDialog.cs
- CompModSwitches.cs
- HtmlMeta.cs
- infer.cs
- BaseParagraph.cs
- CustomErrorCollection.cs
- RuntimeConfigurationRecord.cs
- SqlParameterCollection.cs
- EntityProviderFactory.cs
- LassoSelectionBehavior.cs
- AccessedThroughPropertyAttribute.cs
- CopyCodeAction.cs
- LineVisual.cs
- DataTableTypeConverter.cs
- PerfCounterSection.cs
- HyperLinkStyle.cs
- TextBlockAutomationPeer.cs
- X509CertificateCollection.cs
- KeyValueSerializer.cs
- ConfigXmlWhitespace.cs
- ButtonBaseAutomationPeer.cs
- HttpRequestCacheValidator.cs
- PersonalizationProvider.cs
- CertificateManager.cs
- ListViewDataItem.cs
- SiteMap.cs
- ClientSettingsStore.cs
- XmlHelper.cs
- GroupJoinQueryOperator.cs
- SocketElement.cs
- DeferredReference.cs
- WebPartUtil.cs
- EmptyQuery.cs
- PathNode.cs
- DocumentPageViewAutomationPeer.cs
- CommonXSendMessage.cs
- XPathConvert.cs
- JoinTreeNode.cs
- NamespaceDecl.cs
- ColorAnimationUsingKeyFrames.cs
- RsaSecurityToken.cs
- SecurityManager.cs
- Shape.cs
- DllHostedComPlusServiceHost.cs
- OleDbWrapper.cs
- ConfigurationManagerInternalFactory.cs
- DataSetUtil.cs
- UIElementIsland.cs
- securestring.cs
- MetricEntry.cs
- Point3DCollectionConverter.cs
- CqlBlock.cs
- XPathBuilder.cs
- WebBrowserProgressChangedEventHandler.cs
- SystemGatewayIPAddressInformation.cs
- DocumentReferenceCollection.cs
- ConfigurationValue.cs
- DecoderNLS.cs
- LassoSelectionBehavior.cs
- ResourceCategoryAttribute.cs
- OutOfMemoryException.cs
- DelegatingTypeDescriptionProvider.cs
- Cell.cs
- NoClickablePointException.cs
- BindToObject.cs
- RegexCapture.cs
- QueryRewriter.cs
- ProfileParameter.cs
- FlowDecisionLabelFeature.cs
- BamlRecordWriter.cs
- AnnouncementDispatcherAsyncResult.cs
- TypeHelper.cs
- BamlTreeUpdater.cs
- PageParserFilter.cs
- ImageBrush.cs
- CursorConverter.cs
- EdgeModeValidation.cs
- XPathParser.cs
- ClientData.cs
- MarkupWriter.cs
- EDesignUtil.cs
- LeftCellWrapper.cs
- Rijndael.cs
- COM2ExtendedUITypeEditor.cs
- TableLayoutSettingsTypeConverter.cs
- MenuScrollingVisibilityConverter.cs
- XmlCodeExporter.cs
- PreProcessor.cs
- DispatchChannelSink.cs
- TableChangeProcessor.cs
- MiniConstructorInfo.cs
- DateTimeParse.cs
- SqlDataSource.cs