Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AuthenticationManager.cs
- OdbcTransaction.cs
- ToolBar.cs
- ComponentDesigner.cs
- DecodeHelper.cs
- KeyValuePairs.cs
- RegexParser.cs
- UserUseLicenseDictionaryLoader.cs
- CompilerInfo.cs
- WindowsRegion.cs
- DataObjectMethodAttribute.cs
- FontEmbeddingManager.cs
- MoveSizeWinEventHandler.cs
- LinkArea.cs
- DiagnosticsConfigurationHandler.cs
- CompilationRelaxations.cs
- Calendar.cs
- XmlSigningNodeWriter.cs
- PerspectiveCamera.cs
- FieldNameLookup.cs
- CharAnimationUsingKeyFrames.cs
- RectangleConverter.cs
- Internal.cs
- TaskExtensions.cs
- StringConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- TextMetrics.cs
- VirtualizingStackPanel.cs
- XhtmlMobileTextWriter.cs
- DataGridViewCellStyleConverter.cs
- DocumentXmlWriter.cs
- LayoutEvent.cs
- MetadataCache.cs
- SchemaTableOptionalColumn.cs
- XmlStreamNodeWriter.cs
- ComponentEditorPage.cs
- MetadataSerializer.cs
- DEREncoding.cs
- Peer.cs
- HtmlControlPersistable.cs
- TraceContextRecord.cs
- QueryOperationResponseOfT.cs
- DependencyObjectType.cs
- XmlC14NWriter.cs
- PropertyFilterAttribute.cs
- X509Certificate.cs
- ParamArrayAttribute.cs
- DataList.cs
- GeneralTransform3DTo2DTo3D.cs
- RequestResizeEvent.cs
- _CommandStream.cs
- ProxyWebPartManagerDesigner.cs
- DbExpressionVisitor_TResultType.cs
- CollectionViewProxy.cs
- User.cs
- DateTimeFormatInfo.cs
- NetNamedPipeBindingCollectionElement.cs
- ScrollProviderWrapper.cs
- HtmlContainerControl.cs
- PrincipalPermission.cs
- DragEventArgs.cs
- Symbol.cs
- Matrix3DStack.cs
- DropSource.cs
- IResourceProvider.cs
- ToolStripRenderEventArgs.cs
- Style.cs
- Merger.cs
- SecurityHelper.cs
- Crypto.cs
- UrlMappingsModule.cs
- SingletonConnectionReader.cs
- TextServicesPropertyRanges.cs
- ParamArrayAttribute.cs
- PeerName.cs
- DataFormat.cs
- SchemaElementLookUpTable.cs
- SafeNativeMethods.cs
- ToolBarPanel.cs
- TypeGeneratedEventArgs.cs
- SourceElementsCollection.cs
- ExtenderProviderService.cs
- AssemblyCache.cs
- Label.cs
- DocumentReferenceCollection.cs
- ViewBase.cs
- OutputCacheProfileCollection.cs
- SoapTypeAttribute.cs
- NotifyIcon.cs
- MatrixCamera.cs
- TraceSwitch.cs
- ToolStripCodeDomSerializer.cs
- EntryPointNotFoundException.cs
- EnumBuilder.cs
- RefExpr.cs
- pingexception.cs
- GetWinFXPath.cs
- DataGridViewColumnHeaderCell.cs
- ListViewItemSelectionChangedEvent.cs
- TiffBitmapDecoder.cs