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
- MimeXmlImporter.cs
- SqlServices.cs
- SafeRegistryHandle.cs
- ZoneIdentityPermission.cs
- ItemsControl.cs
- TreeNodeStyleCollection.cs
- SpoolingTask.cs
- OrthographicCamera.cs
- ToolboxItem.cs
- FontEmbeddingManager.cs
- ProxyManager.cs
- CompilerInfo.cs
- UserControlParser.cs
- PermissionAttributes.cs
- CachedPathData.cs
- TextSerializer.cs
- ClientUrlResolverWrapper.cs
- XmlSchemaIdentityConstraint.cs
- NameTable.cs
- Panel.cs
- VBIdentifierNameEditor.cs
- CqlLexer.cs
- ManualResetEvent.cs
- SQLBinary.cs
- ConfigsHelper.cs
- ArglessEventHandlerProxy.cs
- DetailsViewPageEventArgs.cs
- MethodSet.cs
- TypeExtension.cs
- WindowHideOrCloseTracker.cs
- RestHandlerFactory.cs
- RequestStatusBarUpdateEventArgs.cs
- newinstructionaction.cs
- DataSourceControl.cs
- Button.cs
- CatalogPartDesigner.cs
- EventHandlerList.cs
- CompositeControl.cs
- InstanceLockedException.cs
- QuaternionValueSerializer.cs
- Size3DConverter.cs
- SnapshotChangeTrackingStrategy.cs
- commandenforcer.cs
- mediaeventargs.cs
- GridViewRowEventArgs.cs
- ListSourceHelper.cs
- HeaderUtility.cs
- BezierSegment.cs
- TdsEnums.cs
- XPathQueryGenerator.cs
- ContainerParaClient.cs
- DataContractSerializer.cs
- ScalarType.cs
- DnsPermission.cs
- AuthorizationRule.cs
- UrlMappingCollection.cs
- ExtensionSurface.cs
- ComponentDispatcher.cs
- MasterPageParser.cs
- DialogResultConverter.cs
- PassportAuthentication.cs
- ThreadExceptionEvent.cs
- userdatakeys.cs
- DataSvcMapFileSerializer.cs
- HScrollBar.cs
- MexBindingElement.cs
- LinkedResource.cs
- ProviderUtil.cs
- TreeViewEvent.cs
- TabControlCancelEvent.cs
- GlyphShapingProperties.cs
- Pkcs9Attribute.cs
- CodeRemoveEventStatement.cs
- Highlights.cs
- DataGridViewColumnCollectionDialog.cs
- dsa.cs
- UrlSyndicationContent.cs
- HttpCapabilitiesBase.cs
- ColorTranslator.cs
- Storyboard.cs
- ConnectionPointCookie.cs
- WindowsButton.cs
- SimpleFileLog.cs
- RadioButton.cs
- XslTransform.cs
- DependencyObjectPropertyDescriptor.cs
- XmlCharType.cs
- QilTypeChecker.cs
- Path.cs
- CommonDialog.cs
- NativeMethodsOther.cs
- RotationValidation.cs
- SqlClientFactory.cs
- ProtocolElement.cs
- FixedLineResult.cs
- CorrelationTokenTypeConvertor.cs
- ProfileManager.cs
- FormsAuthenticationCredentials.cs
- CurrencyWrapper.cs
- WhitespaceRuleReader.cs