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
- ComboBox.cs
- StyleXamlParser.cs
- HandleExceptionArgs.cs
- FreezableDefaultValueFactory.cs
- RemotingSurrogateSelector.cs
- JumpItem.cs
- SoundPlayerAction.cs
- XmlNamespaceMapping.cs
- OracleCommandBuilder.cs
- LinkButton.cs
- DBCommand.cs
- HiddenFieldPageStatePersister.cs
- AssemblyInfo.cs
- StateRuntime.cs
- LayoutDump.cs
- __Error.cs
- Atom10FeedFormatter.cs
- IndicShape.cs
- InstanceStore.cs
- Light.cs
- PLINQETWProvider.cs
- InstanceDataCollection.cs
- Variant.cs
- FormatterConverter.cs
- FigureParagraph.cs
- GlyphingCache.cs
- DbParameterCollection.cs
- BitmapMetadataEnumerator.cs
- Timer.cs
- PerformanceCounterPermission.cs
- SQLByteStorage.cs
- OledbConnectionStringbuilder.cs
- BufferModeSettings.cs
- ValidatedControlConverter.cs
- MetadataException.cs
- XsltContext.cs
- OciLobLocator.cs
- HttpCapabilitiesBase.cs
- XmlChildEnumerator.cs
- MetadataElement.cs
- SplitterCancelEvent.cs
- AssemblyCollection.cs
- Polygon.cs
- DesignerAttribute.cs
- XmlSchemaChoice.cs
- PointHitTestParameters.cs
- BitmapFrameDecode.cs
- Convert.cs
- xsdvalidator.cs
- XPathPatternBuilder.cs
- SafeProcessHandle.cs
- SqlBulkCopyColumnMappingCollection.cs
- TableRow.cs
- ResourceProperty.cs
- SerializationStore.cs
- StretchValidation.cs
- TypeConverterHelper.cs
- DesignerLoader.cs
- HtmlInputHidden.cs
- SecurityTokenSerializer.cs
- _NestedSingleAsyncResult.cs
- HtmlInputRadioButton.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DrawingVisualDrawingContext.cs
- Bezier.cs
- CallId.cs
- WindowsRichEditRange.cs
- HashCryptoHandle.cs
- QilGeneratorEnv.cs
- FileLogRecordStream.cs
- TextRange.cs
- ContractMapping.cs
- DataGridPagerStyle.cs
- SafeThemeHandle.cs
- SqlServer2KCompatibilityCheck.cs
- FieldDescriptor.cs
- ResourcesBuildProvider.cs
- XPathNavigator.cs
- ModuleBuilderData.cs
- RowType.cs
- BindableTemplateBuilder.cs
- CookieProtection.cs
- BuildProvidersCompiler.cs
- GifBitmapDecoder.cs
- ArrangedElement.cs
- Style.cs
- SqlCommandBuilder.cs
- SoapExtensionTypeElementCollection.cs
- ThreadInterruptedException.cs
- SafeNativeMethodsOther.cs
- EncoderReplacementFallback.cs
- BinarySerializer.cs
- SafeCryptoHandles.cs
- OnOperation.cs
- DropSource.cs
- CriticalHandle.cs
- ReplyAdapterChannelListener.cs
- LocalBuilder.cs
- DbModificationClause.cs
- EdmProperty.cs