Code:
/ DotNET / DotNET / 8.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
- ProxyHwnd.cs
- MetadataArtifactLoaderCompositeFile.cs
- CompiledRegexRunnerFactory.cs
- XmlAggregates.cs
- ToolStripContentPanel.cs
- DelegatingStream.cs
- RawTextInputReport.cs
- GeneratedCodeAttribute.cs
- DynamicILGenerator.cs
- OAVariantLib.cs
- AdornerDecorator.cs
- WebPartVerbCollection.cs
- SortQuery.cs
- EmptyReadOnlyDictionaryInternal.cs
- _TransmitFileOverlappedAsyncResult.cs
- UrlMappingCollection.cs
- Selector.cs
- SqlTriggerAttribute.cs
- ApplicationSettingsBase.cs
- PipeConnection.cs
- SizeAnimationClockResource.cs
- PeerCredentialElement.cs
- StringAnimationUsingKeyFrames.cs
- DataContractJsonSerializerOperationBehavior.cs
- SendSecurityHeaderElement.cs
- Transform.cs
- HtmlTextBoxAdapter.cs
- StatusBarDrawItemEvent.cs
- SafeHandles.cs
- ReflectPropertyDescriptor.cs
- AuthenticationService.cs
- FlowLayoutPanel.cs
- SoapFormatExtensions.cs
- ColorAnimationBase.cs
- ListBoxItemWrapperAutomationPeer.cs
- GeneralTransform2DTo3DTo2D.cs
- UsernameTokenFactoryCredential.cs
- ConnectionManagementSection.cs
- ColorMap.cs
- TableCellCollection.cs
- GenericEnumerator.cs
- SkewTransform.cs
- StringExpressionSet.cs
- XmlReflectionImporter.cs
- TabControlAutomationPeer.cs
- DeferredTextReference.cs
- MouseWheelEventArgs.cs
- RawStylusActions.cs
- ValidationHelper.cs
- MsmqEncryptionAlgorithm.cs
- FreezableOperations.cs
- TextMessageEncodingBindingElement.cs
- DataGridAddNewRow.cs
- RtfControls.cs
- ComboBoxDesigner.cs
- ScaleTransform3D.cs
- JsonSerializer.cs
- _CookieModule.cs
- ListDataBindEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- FamilyMapCollection.cs
- PackagingUtilities.cs
- DataSourceCache.cs
- UxThemeWrapper.cs
- DocumentApplicationJournalEntry.cs
- CallbackValidator.cs
- LogManagementAsyncResult.cs
- EdmToObjectNamespaceMap.cs
- AlphabetConverter.cs
- Hex.cs
- XmlEntity.cs
- HtmlButton.cs
- WindowInteractionStateTracker.cs
- ToolStripItemDesigner.cs
- ProcessInfo.cs
- CompModSwitches.cs
- ProtectedConfigurationProviderCollection.cs
- PropertyContainer.cs
- ECDsa.cs
- EventProxy.cs
- Int32CollectionConverter.cs
- CustomAttributeBuilder.cs
- RepeatBehavior.cs
- NativeMethods.cs
- CodeArrayCreateExpression.cs
- DataGridViewSelectedColumnCollection.cs
- FontFamilyConverter.cs
- TextTreeUndoUnit.cs
- JavaScriptSerializer.cs
- PropertyFilterAttribute.cs
- InstanceData.cs
- ResolveMatchesMessageCD1.cs
- NetworkInformationException.cs
- HashAlgorithm.cs
- FontWeightConverter.cs
- DbExpressionBuilder.cs
- TextViewBase.cs
- MsmqIntegrationBinding.cs
- Switch.cs
- ConfigXmlSignificantWhitespace.cs