Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- IODescriptionAttribute.cs
- BasePropertyDescriptor.cs
- WebPartVerbCollection.cs
- DataListItemCollection.cs
- XDeferredAxisSource.cs
- SystemIPAddressInformation.cs
- Exceptions.cs
- Timer.cs
- UserControlParser.cs
- CodeArgumentReferenceExpression.cs
- GregorianCalendarHelper.cs
- PopOutPanel.cs
- BitmapDecoder.cs
- UpdateException.cs
- TCEAdapterGenerator.cs
- Utils.cs
- FrameworkContextData.cs
- UnmanagedMarshal.cs
- Journaling.cs
- ScriptManagerProxy.cs
- XmlDocumentType.cs
- CustomCredentialPolicy.cs
- MissingMethodException.cs
- BamlBinaryReader.cs
- MultiPageTextView.cs
- RequestCache.cs
- cookie.cs
- TextInfo.cs
- TypeDescriptor.cs
- SelectionRange.cs
- UserControlBuildProvider.cs
- _HTTPDateParse.cs
- ProcessModule.cs
- IncrementalReadDecoders.cs
- ScriptResourceHandler.cs
- DataPagerFieldItem.cs
- CacheDict.cs
- Model3DGroup.cs
- ExpressionBuilder.cs
- StringSorter.cs
- DataObjectMethodAttribute.cs
- CustomLineCap.cs
- ButtonStandardAdapter.cs
- DataGridTable.cs
- NamedPipeTransportBindingElement.cs
- PenContext.cs
- XPathNodeIterator.cs
- FileDialog_Vista.cs
- DataGridViewSelectedRowCollection.cs
- NullRuntimeConfig.cs
- Brush.cs
- QueryValue.cs
- GuidTagList.cs
- LoginCancelEventArgs.cs
- TemplateParser.cs
- Classification.cs
- LineProperties.cs
- KnownBoxes.cs
- NamedObjectList.cs
- SecurityException.cs
- AddInControllerImpl.cs
- NoPersistProperty.cs
- DataGridTemplateColumn.cs
- Context.cs
- LockRenewalTask.cs
- PrintPreviewControl.cs
- TextBoxBase.cs
- CodeLinePragma.cs
- FlowNode.cs
- TabControl.cs
- xml.cs
- MsmqMessageProperty.cs
- ToolboxItemFilterAttribute.cs
- RectIndependentAnimationStorage.cs
- StringFreezingAttribute.cs
- WebEventTraceProvider.cs
- PasswordRecovery.cs
- NameTable.cs
- PointLight.cs
- UIHelper.cs
- BuildProvider.cs
- EmptyControlCollection.cs
- OdbcConnectionFactory.cs
- WebSysDefaultValueAttribute.cs
- TraceSource.cs
- DataGridLinkButton.cs
- GridView.cs
- WorkflowItemPresenter.cs
- CopyOfAction.cs
- XXXInfos.cs
- ToolStripItem.cs
- DependencyPropertyKey.cs
- MemoryRecordBuffer.cs
- XmlC14NWriter.cs
- BinaryObjectReader.cs
- XamlStream.cs
- MembershipSection.cs
- Int16AnimationBase.cs
- RouteItem.cs
- Mapping.cs