Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LinkTarget.cs
- ListItemsPage.cs
- MergeFilterQuery.cs
- ReadOnlyCollection.cs
- ReflectEventDescriptor.cs
- StringSorter.cs
- EventProxy.cs
- EnumValAlphaComparer.cs
- StorageComplexTypeMapping.cs
- SingleStorage.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- MachineKeyConverter.cs
- ProtectedProviderSettings.cs
- ColorMatrix.cs
- XpsS0ValidatingLoader.cs
- IntSecurity.cs
- HttpMethodConstraint.cs
- XPathException.cs
- OperationCanceledException.cs
- ContentControl.cs
- GlobalProxySelection.cs
- VarRemapper.cs
- ListSourceHelper.cs
- TextTreeUndo.cs
- LassoSelectionBehavior.cs
- WebPartUtil.cs
- XhtmlBasicLabelAdapter.cs
- NTAccount.cs
- TimeSpanParse.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ActiveDesignSurfaceEvent.cs
- ZipIOCentralDirectoryFileHeader.cs
- ITextView.cs
- Int64KeyFrameCollection.cs
- MetadataCache.cs
- InputDevice.cs
- HttpNamespaceReservationInstallComponent.cs
- FormatException.cs
- EntityParameterCollection.cs
- SplitterEvent.cs
- BamlRecordHelper.cs
- TablePattern.cs
- DesignerDataView.cs
- MissingSatelliteAssemblyException.cs
- AdobeCFFWrapper.cs
- DebugInfoGenerator.cs
- XmlParserContext.cs
- SessionPageStateSection.cs
- ClientCultureInfo.cs
- RuntimeArgumentHandle.cs
- PageCatalogPart.cs
- DynamicPropertyHolder.cs
- MemberAccessException.cs
- AsymmetricAlgorithm.cs
- InvalidComObjectException.cs
- JavaScriptString.cs
- FixedFindEngine.cs
- ScaleTransform3D.cs
- DBSchemaTable.cs
- TypeUtil.cs
- MappingSource.cs
- DynamicRendererThreadManager.cs
- HtmlTitle.cs
- SettingsPropertyValue.cs
- HtmlUtf8RawTextWriter.cs
- RecipientInfo.cs
- Frame.cs
- StylesEditorDialog.cs
- ChtmlTextWriter.cs
- NetTcpBinding.cs
- NameNode.cs
- CodeMethodReturnStatement.cs
- SchemaManager.cs
- ObjectDataSourceMethodEventArgs.cs
- DataControlFieldCell.cs
- DelegateArgumentValue.cs
- DataKey.cs
- XPathAncestorQuery.cs
- XmlNamedNodeMap.cs
- NetworkInformationPermission.cs
- ServiceModelTimeSpanValidator.cs
- DialogResultConverter.cs
- Inline.cs
- EnumUnknown.cs
- SQLMembershipProvider.cs
- HwndSource.cs
- ListViewGroupConverter.cs
- sapiproxy.cs
- DataDesignUtil.cs
- Int16.cs
- BrowserTree.cs
- ProvideValueServiceProvider.cs
- StaticTextPointer.cs
- TimersDescriptionAttribute.cs
- _ShellExpression.cs
- MessageOperationFormatter.cs
- DataServiceContext.cs
- EventMappingSettings.cs
- DropShadowEffect.cs
- EditingScopeUndoUnit.cs