Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DashStyles.cs
- autovalidator.cs
- TouchesOverProperty.cs
- WindowsListViewItem.cs
- CommandArguments.cs
- FileLevelControlBuilderAttribute.cs
- EntityClientCacheKey.cs
- AsyncStreamReader.cs
- MetadataCacheItem.cs
- SimpleApplicationHost.cs
- EntityDataSourceChangingEventArgs.cs
- DiagnosticTrace.cs
- DataGridViewControlCollection.cs
- NumberSubstitution.cs
- IpcPort.cs
- HtmlImage.cs
- SplineKeyFrames.cs
- ScrollBarAutomationPeer.cs
- Cursor.cs
- BitVec.cs
- DocumentsTrace.cs
- DependencyObjectProvider.cs
- UnmanagedHandle.cs
- CodeMemberMethod.cs
- ItemsPresenter.cs
- XmlUtil.cs
- SqlNodeAnnotations.cs
- DesignerProperties.cs
- HandlerFactoryCache.cs
- HttpHeaderCollection.cs
- _IPv4Address.cs
- RegexParser.cs
- TreeViewItem.cs
- HtmlProps.cs
- TransformGroup.cs
- XPathDocumentBuilder.cs
- LinkClickEvent.cs
- EncoderFallback.cs
- XmlCustomFormatter.cs
- Delay.cs
- Pair.cs
- DrawingDrawingContext.cs
- DiscreteKeyFrames.cs
- QueryCacheManager.cs
- FormViewDeletedEventArgs.cs
- OleDbConnectionInternal.cs
- MatrixStack.cs
- PathData.cs
- ParenExpr.cs
- SamlAction.cs
- RootProfilePropertySettingsCollection.cs
- Run.cs
- DataGridViewCellPaintingEventArgs.cs
- DataException.cs
- MessagePropertyAttribute.cs
- AQNBuilder.cs
- IgnoreFileBuildProvider.cs
- ThumbAutomationPeer.cs
- DetailsViewUpdatedEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- RSAProtectedConfigurationProvider.cs
- TargetParameterCountException.cs
- InputGestureCollection.cs
- ProtocolViolationException.cs
- SystemIPInterfaceStatistics.cs
- Adorner.cs
- XmlEncodedRawTextWriter.cs
- JsonReader.cs
- recordstatefactory.cs
- DependencyPropertyKind.cs
- AppLevelCompilationSectionCache.cs
- XmlComment.cs
- WorkflowRuntime.cs
- UrlMapping.cs
- CreateUserErrorEventArgs.cs
- InstanceCreationEditor.cs
- BuildProviderCollection.cs
- BaseTemplateBuildProvider.cs
- DataBoundControlDesigner.cs
- IPAddressCollection.cs
- WebServiceReceive.cs
- FakeModelItemImpl.cs
- EdmFunctionAttribute.cs
- FolderNameEditor.cs
- RenderDataDrawingContext.cs
- XmlDataSourceNodeDescriptor.cs
- DataGridClipboardHelper.cs
- DataFieldEditor.cs
- Range.cs
- TableLayoutStyleCollection.cs
- EventEntry.cs
- XmlDocumentFragment.cs
- XPathSelectionIterator.cs
- XmlAttributeAttribute.cs
- DbCommandTree.cs
- SizeConverter.cs
- SecurityManager.cs
- NameValuePair.cs
- ActiveXHelper.cs
- NamedObject.cs