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
- ServiceOperation.cs
- LinkedList.cs
- Brush.cs
- XmlMapping.cs
- Item.cs
- EventLogger.cs
- MimeParameter.cs
- HtmlGenericControl.cs
- SBCSCodePageEncoding.cs
- HealthMonitoringSectionHelper.cs
- X509RecipientCertificateClientElement.cs
- DataSourceIDConverter.cs
- QilReference.cs
- Int16KeyFrameCollection.cs
- QilStrConcat.cs
- HttpListener.cs
- SafeFileMapViewHandle.cs
- InputDevice.cs
- ProxyHwnd.cs
- SchemaMerger.cs
- ScrollViewer.cs
- FixedStringLookup.cs
- TransformPatternIdentifiers.cs
- HwndProxyElementProvider.cs
- HandoffBehavior.cs
- InvokeHandlers.cs
- Section.cs
- ToolStripMenuItemCodeDomSerializer.cs
- CursorInteropHelper.cs
- CodeDefaultValueExpression.cs
- ProxyWebPartManager.cs
- CancellationState.cs
- TempFiles.cs
- TempEnvironment.cs
- RegexStringValidator.cs
- XmlSchemaFacet.cs
- ScrollBarAutomationPeer.cs
- StringBuilder.cs
- PopupControlService.cs
- BypassElementCollection.cs
- Focus.cs
- CannotUnloadAppDomainException.cs
- DependencyProperty.cs
- UserInitiatedRoutedEventPermission.cs
- SafeSystemMetrics.cs
- ListViewTableRow.cs
- PermissionRequestEvidence.cs
- SourceFileBuildProvider.cs
- ServiceBuildProvider.cs
- TreeViewImageIndexConverter.cs
- ByteStorage.cs
- HtmlInputImage.cs
- ResourceWriter.cs
- UiaCoreApi.cs
- HwndProxyElementProvider.cs
- base64Transforms.cs
- DateTime.cs
- RSAOAEPKeyExchangeFormatter.cs
- OleDbPropertySetGuid.cs
- HtmlAnchor.cs
- IgnoreFileBuildProvider.cs
- SchemaElementLookUpTableEnumerator.cs
- CopyOnWriteList.cs
- RowToParametersTransformer.cs
- ProcessHostFactoryHelper.cs
- remotingproxy.cs
- DataGridSortCommandEventArgs.cs
- TransformConverter.cs
- InternalSafeNativeMethods.cs
- SamlSubjectStatement.cs
- CodeExporter.cs
- Environment.cs
- InvokeBase.cs
- FigureParaClient.cs
- XmlBoundElement.cs
- ReversePositionQuery.cs
- AndMessageFilter.cs
- ZipPackage.cs
- KeyEventArgs.cs
- FontStyleConverter.cs
- ChtmlFormAdapter.cs
- RsaKeyIdentifierClause.cs
- StateChangeEvent.cs
- Polyline.cs
- Rotation3D.cs
- SimpleLine.cs
- MatchAllMessageFilter.cs
- Literal.cs
- DigitalSignature.cs
- XmlAttributes.cs
- XamlWriter.cs
- XmlSchemaGroup.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- XmlSchemaAnnotation.cs
- ClickablePoint.cs
- Root.cs
- ToolboxItemFilterAttribute.cs
- PngBitmapDecoder.cs
- ChannelManager.cs
- OutOfProcStateClientManager.cs