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
- TableLayoutStyle.cs
- DateTimeFormat.cs
- DispatcherHooks.cs
- TagPrefixInfo.cs
- FrameworkContentElement.cs
- PolyQuadraticBezierSegment.cs
- XmlNavigatorFilter.cs
- AssertSection.cs
- TemplateBamlRecordReader.cs
- DbSourceCommand.cs
- PtsContext.cs
- XmlSchemaInfo.cs
- StringReader.cs
- TextLineBreak.cs
- MenuScrollingVisibilityConverter.cs
- DataContractSerializer.cs
- XmlNullResolver.cs
- Deflater.cs
- UnsafeNetInfoNativeMethods.cs
- EntityConnectionStringBuilder.cs
- GeneralTransform3DGroup.cs
- SupportsPreviewControlAttribute.cs
- PixelShader.cs
- LogWriteRestartAreaAsyncResult.cs
- CollaborationHelperFunctions.cs
- WebPartTransformerCollection.cs
- CryptoKeySecurity.cs
- ProbeMatchesApril2005.cs
- ProcessThreadCollection.cs
- DataSet.cs
- X509ThumbprintKeyIdentifierClause.cs
- StandardRuntimeEnumValidator.cs
- WebDisplayNameAttribute.cs
- SplineKeyFrames.cs
- WindowsPen.cs
- EventPrivateKey.cs
- SqlClientWrapperSmiStreamChars.cs
- EntityDataSourceViewSchema.cs
- DataSourceSelectArguments.cs
- QueryCursorEventArgs.cs
- BindingSource.cs
- ContextMenuAutomationPeer.cs
- ConfigurationValue.cs
- TemplateControlParser.cs
- TdsParserStateObject.cs
- ExpanderAutomationPeer.cs
- SmiConnection.cs
- SystemTcpConnection.cs
- ProfessionalColorTable.cs
- XmlNamespaceMappingCollection.cs
- ApplicationDirectory.cs
- DetailsViewInsertEventArgs.cs
- XmlSerializationReader.cs
- DBProviderConfigurationHandler.cs
- LayeredChannelListener.cs
- UnsafeNativeMethods.cs
- IssuedSecurityTokenParameters.cs
- Command.cs
- XmlCharCheckingWriter.cs
- ImageListStreamer.cs
- Context.cs
- LinkTarget.cs
- WorkflowView.cs
- CounterCreationDataCollection.cs
- DbParameterHelper.cs
- GridItemProviderWrapper.cs
- XslAstAnalyzer.cs
- Qualifier.cs
- PropertyDescriptorCollection.cs
- ListItemDetailViewAttribute.cs
- DbException.cs
- Pkcs7Recipient.cs
- DocumentXPathNavigator.cs
- SerializationFieldInfo.cs
- DataGridViewCellConverter.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- PropertyChangedEventManager.cs
- Part.cs
- Root.cs
- CmsUtils.cs
- TableItemProviderWrapper.cs
- Int32AnimationUsingKeyFrames.cs
- SqlBuffer.cs
- ActivityExecutionContext.cs
- Typography.cs
- XsdDataContractExporter.cs
- HttpContextServiceHost.cs
- ElementHost.cs
- ProgressPage.cs
- SymbolEqualComparer.cs
- SchemaObjectWriter.cs
- Win32KeyboardDevice.cs
- CodeNamespaceImport.cs
- RolePrincipal.cs
- FormViewCommandEventArgs.cs
- TextDecorationLocationValidation.cs
- XmlWhitespace.cs
- WorkflowRuntimeService.cs
- selecteditemcollection.cs
- XmlNamespaceMappingCollection.cs