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
- DocumentGridPage.cs
- mactripleDES.cs
- DiscoveryCallbackBehavior.cs
- XpsInterleavingPolicy.cs
- ProbeMatchesApril2005.cs
- SamlAuthenticationClaimResource.cs
- BeginStoryboard.cs
- RedistVersionInfo.cs
- PropertyState.cs
- RemoteWebConfigurationHost.cs
- Journaling.cs
- cookieexception.cs
- ListViewItem.cs
- COM2ExtendedTypeConverter.cs
- ClientCredentialsElement.cs
- TiffBitmapEncoder.cs
- FamilyMapCollection.cs
- ServiceDesigner.cs
- SqlUtils.cs
- XmlUtf8RawTextWriter.cs
- DesignerDataColumn.cs
- ReferencedType.cs
- HMACSHA1.cs
- MaskDesignerDialog.cs
- CodeTryCatchFinallyStatement.cs
- TreeViewCancelEvent.cs
- TempEnvironment.cs
- OdbcError.cs
- XmlNamespaceDeclarationsAttribute.cs
- HtmlHead.cs
- MembershipUser.cs
- RangeContentEnumerator.cs
- ConfigXmlText.cs
- __Error.cs
- SslStream.cs
- DataGridViewButtonCell.cs
- followingsibling.cs
- OpenTypeLayout.cs
- DetailsView.cs
- BuildDependencySet.cs
- InternalEnumValidatorAttribute.cs
- Section.cs
- PersistenceTypeAttribute.cs
- RoleServiceManager.cs
- TypeSemantics.cs
- ExitEventArgs.cs
- ListViewDeletedEventArgs.cs
- Propagator.JoinPropagator.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ProxyWebPartManager.cs
- CodeCatchClause.cs
- ConfigurationManagerInternalFactory.cs
- util.cs
- TextTreeDeleteContentUndoUnit.cs
- SerializationObjectManager.cs
- ProviderConnectionPoint.cs
- _LocalDataStoreMgr.cs
- _SslState.cs
- ConfigXmlDocument.cs
- AssemblyBuilder.cs
- ListControlBuilder.cs
- ZipIOExtraFieldPaddingElement.cs
- WebServiceHandler.cs
- ObjectListShowCommandsEventArgs.cs
- LateBoundChannelParameterCollection.cs
- EventLogPermissionEntry.cs
- ReferencedType.cs
- PropertyEntry.cs
- HandlerBase.cs
- XamlValidatingReader.cs
- AdCreatedEventArgs.cs
- MenuItem.cs
- QilInvokeLateBound.cs
- ConstNode.cs
- WinFormsUtils.cs
- ListBox.cs
- FixedSOMElement.cs
- DropDownButton.cs
- Point3D.cs
- CompletionBookmark.cs
- DbParameterCollection.cs
- NativeActivityTransactionContext.cs
- ByteConverter.cs
- BamlVersionHeader.cs
- RawStylusInput.cs
- HMACSHA256.cs
- UpdateExpressionVisitor.cs
- FloaterParagraph.cs
- MetaChildrenColumn.cs
- Documentation.cs
- TextTreeFixupNode.cs
- FutureFactory.cs
- CalendarButton.cs
- AutomationPatternInfo.cs
- mediaeventargs.cs
- ResolvedKeyFrameEntry.cs
- TreeNodeCollection.cs
- StrongNameUtility.cs
- CqlBlock.cs
- RemotingServices.cs