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
- CompositeFontParser.cs
- ComponentRenameEvent.cs
- Version.cs
- VisualStateManager.cs
- XmlExtensionFunction.cs
- ConnectionPoolManager.cs
- SecurityTokenProvider.cs
- MemberRelationshipService.cs
- XmlReflectionMember.cs
- IntSecurity.cs
- TdsEnums.cs
- _AutoWebProxyScriptEngine.cs
- WindowsFormsSectionHandler.cs
- ProfilePropertySettings.cs
- PrivilegeNotHeldException.cs
- DataIdProcessor.cs
- ObjectDataSourceDisposingEventArgs.cs
- CodeSubDirectory.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- DataServices.cs
- BasicExpandProvider.cs
- TableParaClient.cs
- BordersPage.cs
- TextChangedEventArgs.cs
- MappingItemCollection.cs
- InternalConfigRoot.cs
- ExtensionElementCollection.cs
- DbMetaDataFactory.cs
- ToolStrip.cs
- NamedPipeChannelListener.cs
- ByteRangeDownloader.cs
- SemanticAnalyzer.cs
- RequestResizeEvent.cs
- DefaultExpression.cs
- ConstraintManager.cs
- EventLogPermissionAttribute.cs
- KeyedHashAlgorithm.cs
- DefaultWorkflowTransactionService.cs
- Compiler.cs
- XamlGridLengthSerializer.cs
- BinaryObjectInfo.cs
- SqlMethodTransformer.cs
- EntityDesignerUtils.cs
- ColorAnimationUsingKeyFrames.cs
- UserPreferenceChangedEventArgs.cs
- PageEventArgs.cs
- CodeCommentStatement.cs
- PostBackOptions.cs
- ComboBox.cs
- ConditionedDesigner.cs
- CultureTable.cs
- LicenseException.cs
- DelegateArgumentReference.cs
- GridViewUpdatedEventArgs.cs
- TickBar.cs
- CustomAttributeSerializer.cs
- MouseButtonEventArgs.cs
- Pair.cs
- AttributeAction.cs
- ManipulationDelta.cs
- TraceInternal.cs
- SemaphoreFullException.cs
- ListViewItemSelectionChangedEvent.cs
- IODescriptionAttribute.cs
- StructuredProperty.cs
- MemoryStream.cs
- RectConverter.cs
- DebugControllerThread.cs
- CompositeActivityValidator.cs
- EdmError.cs
- ListParaClient.cs
- FixedStringLookup.cs
- EntityProxyTypeInfo.cs
- WindowsAuthenticationEventArgs.cs
- Misc.cs
- DockPanel.cs
- ListViewInsertEventArgs.cs
- InitializerFacet.cs
- ConnectionManagementElementCollection.cs
- TemplateBindingExpression.cs
- BindingBase.cs
- SafeEventLogWriteHandle.cs
- ThemeDirectoryCompiler.cs
- MouseActionValueSerializer.cs
- BrowserCapabilitiesFactory35.cs
- MDIWindowDialog.cs
- MetadataItemCollectionFactory.cs
- WebProxyScriptElement.cs
- Trace.cs
- WindowsTab.cs
- PrimitiveList.cs
- XmlNotation.cs
- Function.cs
- FrugalList.cs
- HttpCacheParams.cs
- LinkLabel.cs
- TextWriter.cs
- Int32CAMarshaler.cs
- UIntPtr.cs
- SqlRowUpdatedEvent.cs