Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Compilation / DesignTimeResourceProviderFactoryAttribute.cs / 1 / DesignTimeResourceProviderFactoryAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Compilation {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Allows a ResourceProviderFactory to specify the type of the associated
/// DesignTimeResourceProviderFactory.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class DesignTimeResourceProviderFactoryAttribute : Attribute {
private string _factoryTypeName;
public DesignTimeResourceProviderFactoryAttribute(Type factoryType) {
_factoryTypeName = factoryType.AssemblyQualifiedName;
}
public DesignTimeResourceProviderFactoryAttribute(string factoryTypeName) {
_factoryTypeName = factoryTypeName;
}
public string FactoryTypeName {
get {
return _factoryTypeName;
}
}
public override bool IsDefaultAttribute() {
return (_factoryTypeName == null);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Compilation {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Allows a ResourceProviderFactory to specify the type of the associated
/// DesignTimeResourceProviderFactory.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class DesignTimeResourceProviderFactoryAttribute : Attribute {
private string _factoryTypeName;
public DesignTimeResourceProviderFactoryAttribute(Type factoryType) {
_factoryTypeName = factoryType.AssemblyQualifiedName;
}
public DesignTimeResourceProviderFactoryAttribute(string factoryTypeName) {
_factoryTypeName = factoryTypeName;
}
public string FactoryTypeName {
get {
return _factoryTypeName;
}
}
public override bool IsDefaultAttribute() {
return (_factoryTypeName == null);
}
}
}
// 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
- NullReferenceException.cs
- XmlSchemaImporter.cs
- PathFigure.cs
- ConnectionsZoneDesigner.cs
- TextProviderWrapper.cs
- ColorDialog.cs
- EnumType.cs
- HTMLTagNameToTypeMapper.cs
- DataGridView.cs
- ConnectionPointGlyph.cs
- NativeMethods.cs
- ServicePointManagerElement.cs
- TripleDES.cs
- MenuAutomationPeer.cs
- DecimalFormatter.cs
- UnsafeNativeMethods.cs
- BitArray.cs
- COSERVERINFO.cs
- ResXResourceSet.cs
- EventEntry.cs
- RsaKeyIdentifierClause.cs
- TypeRefElement.cs
- XmlSerializerFactory.cs
- SystemResources.cs
- CompoundFileDeflateTransform.cs
- FrameAutomationPeer.cs
- StyleConverter.cs
- Mapping.cs
- TextHintingModeValidation.cs
- DbExpressionVisitor.cs
- connectionpool.cs
- ExternalException.cs
- Atom10FormatterFactory.cs
- DocumentPaginator.cs
- CallId.cs
- XmlNodeWriter.cs
- OperationPickerDialog.designer.cs
- EdmConstants.cs
- OleDbFactory.cs
- PropertyHelper.cs
- XsltArgumentList.cs
- SemanticResultKey.cs
- LinearGradientBrush.cs
- AuthenticationConfig.cs
- SiteOfOriginContainer.cs
- BrowserDefinition.cs
- PeerCollaborationPermission.cs
- SettingsSection.cs
- LocalIdKeyIdentifierClause.cs
- SequentialUshortCollection.cs
- WebPartRestoreVerb.cs
- DebugTracing.cs
- ISAPIRuntime.cs
- PointLight.cs
- SchemaLookupTable.cs
- DataBoundControlActionList.cs
- ImageList.cs
- DataGridViewTextBoxEditingControl.cs
- ConfigurationCollectionAttribute.cs
- RegexRunner.cs
- Decorator.cs
- StrokeCollectionDefaultValueFactory.cs
- RegexStringValidatorAttribute.cs
- BuildProvidersCompiler.cs
- SpeakInfo.cs
- Message.cs
- DataGridViewLinkColumn.cs
- PartialClassGenerationTaskInternal.cs
- SelectorItemAutomationPeer.cs
- InvalidFilterCriteriaException.cs
- ThreadPool.cs
- HttpStreams.cs
- FullTextBreakpoint.cs
- FrameworkElement.cs
- SimpleWebHandlerParser.cs
- SqlSupersetValidator.cs
- JoinTreeSlot.cs
- ConfigurationStrings.cs
- dbenumerator.cs
- NavigatingCancelEventArgs.cs
- DataKey.cs
- FormatterServices.cs
- DrawingContextDrawingContextWalker.cs
- AssemblyAssociatedContentFileAttribute.cs
- COM2PictureConverter.cs
- IndexOutOfRangeException.cs
- SQLMoney.cs
- DomNameTable.cs
- ConfigXmlAttribute.cs
- RefreshPropertiesAttribute.cs
- HttpAsyncResult.cs
- SmiContextFactory.cs
- ItemCheckEvent.cs
- ProxyElement.cs
- DetailsViewCommandEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- HtmlWindowCollection.cs
- CacheOutputQuery.cs
- ToolboxBitmapAttribute.cs
- InputMethodStateTypeInfo.cs