Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrintDialog.cs
- Timer.cs
- DocumentPage.cs
- AudioException.cs
- MethodCallExpression.cs
- DbFunctionCommandTree.cs
- ContentElement.cs
- ClientSettings.cs
- RemoteCryptoTokenProvider.cs
- DocumentPageView.cs
- FontFamilyConverter.cs
- UpdateTracker.cs
- InitializerFacet.cs
- DataViewListener.cs
- _NestedMultipleAsyncResult.cs
- ArrayTypeMismatchException.cs
- HttpListener.cs
- GridSplitter.cs
- ApplicationManager.cs
- ContextMenuService.cs
- KeyValueConfigurationCollection.cs
- ViewSimplifier.cs
- RectangleConverter.cs
- ViewPort3D.cs
- DataGridItemEventArgs.cs
- Variant.cs
- OutputWindow.cs
- CommonObjectSecurity.cs
- ClrPerspective.cs
- SystemIPGlobalStatistics.cs
- DateTimeStorage.cs
- FlowLayoutPanelDesigner.cs
- SettingsPropertyWrongTypeException.cs
- DocobjHost.cs
- AspNetSynchronizationContext.cs
- DataControlPagerLinkButton.cs
- SRef.cs
- InheritedPropertyChangedEventArgs.cs
- TreeIterators.cs
- DataGridViewAdvancedBorderStyle.cs
- SimpleWorkerRequest.cs
- XmlTypeMapping.cs
- ProfilePropertySettingsCollection.cs
- brushes.cs
- ObjectSecurity.cs
- PropertyMetadata.cs
- RangeValueProviderWrapper.cs
- SapiInterop.cs
- BindingElementExtensionElement.cs
- DocumentPageView.cs
- NativeMethods.cs
- Attributes.cs
- ConfigXmlAttribute.cs
- ConstraintStruct.cs
- AdPostCacheSubstitution.cs
- WindowInteractionStateTracker.cs
- PtsPage.cs
- InstanceLockedException.cs
- ScrollProviderWrapper.cs
- DirectionalAction.cs
- GeometryDrawing.cs
- ApplyTemplatesAction.cs
- XmlBindingWorker.cs
- ResolveMatchesCD1.cs
- SevenBitStream.cs
- AQNBuilder.cs
- SqlInfoMessageEvent.cs
- XmlArrayAttribute.cs
- DrawingGroup.cs
- ImageSource.cs
- TrailingSpaceComparer.cs
- StateMachineDesignerPaint.cs
- KeyProperty.cs
- peersecurityelement.cs
- TimelineGroup.cs
- MetadataAssemblyHelper.cs
- ScriptControlDescriptor.cs
- InfoCardRSACryptoProvider.cs
- GZipDecoder.cs
- KeyedCollection.cs
- ContainerControlDesigner.cs
- FixedSOMLineRanges.cs
- CookielessHelper.cs
- PixelShader.cs
- TextEditorThreadLocalStore.cs
- XPathMessageFilterTable.cs
- ImageMap.cs
- ScriptReference.cs
- HostingPreferredMapPath.cs
- HtmlTableRow.cs
- ParameterCollection.cs
- MobileCapabilities.cs
- XmlExpressionDumper.cs
- DataGridViewControlCollection.cs
- QueryContinueDragEvent.cs
- RadioButtonRenderer.cs
- ObjectDataProvider.cs
- XomlCompiler.cs
- LinearGradientBrush.cs
- Token.cs