Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Versioning / TargetFrameworkAttribute.cs / 1305376 / TargetFrameworkAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // /*============================================================ ** ** Class: TargetFrameworkAttribute ** ** ** Purpose: Identifies which SKU and version of the .NET ** Framework that a particular library was compiled against. ** Emitted by VS, and can help catch deployment problems. ** ===========================================================*/ using System; using System.Diagnostics.Contracts; namespace System.Runtime.Versioning { [AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)] public sealed class TargetFrameworkAttribute : Attribute { private String _frameworkName; // A target framework moniker private String _frameworkDisplayName; // The frameworkName parameter is intended to be the string form of a FrameworkName instance. public TargetFrameworkAttribute(String frameworkName) { if (frameworkName == null) throw new ArgumentNullException("frameworkName"); Contract.EndContractBlock(); _frameworkName = frameworkName; } // The target framework moniker that this assembly was compiled against. // Use the FrameworkName class to interpret target framework monikers. public String FrameworkName { get { return _frameworkName; } } public String FrameworkDisplayName { get { return _frameworkDisplayName; } set { _frameworkDisplayName = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // /*============================================================ ** ** Class: TargetFrameworkAttribute ** ** ** Purpose: Identifies which SKU and version of the .NET ** Framework that a particular library was compiled against. ** Emitted by VS, and can help catch deployment problems. ** ===========================================================*/ using System; using System.Diagnostics.Contracts; namespace System.Runtime.Versioning { [AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)] public sealed class TargetFrameworkAttribute : Attribute { private String _frameworkName; // A target framework moniker private String _frameworkDisplayName; // The frameworkName parameter is intended to be the string form of a FrameworkName instance. public TargetFrameworkAttribute(String frameworkName) { if (frameworkName == null) throw new ArgumentNullException("frameworkName"); Contract.EndContractBlock(); _frameworkName = frameworkName; } // The target framework moniker that this assembly was compiled against. // Use the FrameworkName class to interpret target framework monikers. public String FrameworkName { get { return _frameworkName; } } public String FrameworkDisplayName { get { return _frameworkDisplayName; } set { _frameworkDisplayName = value; } } } } // 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
- PolicyStatement.cs
- XmlNamedNodeMap.cs
- HTMLTagNameToTypeMapper.cs
- RC2.cs
- MenuAutoFormat.cs
- DrawingContextWalker.cs
- AppSettingsReader.cs
- DesignerCapabilities.cs
- LazyInitializer.cs
- CompositeCollection.cs
- TimeSpan.cs
- DataGridViewMethods.cs
- CngAlgorithmGroup.cs
- ResourceDisplayNameAttribute.cs
- HtmlAnchor.cs
- Trace.cs
- ContainerParagraph.cs
- DispatcherHooks.cs
- SchemaCollectionCompiler.cs
- RequestSecurityToken.cs
- DataRowExtensions.cs
- XmlUrlResolver.cs
- ProtocolsSection.cs
- TypeBuilderInstantiation.cs
- MimeBasePart.cs
- TargetFrameworkUtil.cs
- ConnectionStringsExpressionBuilder.cs
- SchemaImporterExtension.cs
- UserMapPath.cs
- Label.cs
- DebugHandleTracker.cs
- TransformerTypeCollection.cs
- DataGridViewCellValueEventArgs.cs
- ConfigXmlCDataSection.cs
- ParameterElement.cs
- ConstructorBuilder.cs
- ModelItemCollectionImpl.cs
- UserControlCodeDomTreeGenerator.cs
- DataSourceBooleanViewSchemaConverter.cs
- WebDisplayNameAttribute.cs
- MenuItemStyleCollection.cs
- FormatConvertedBitmap.cs
- SequentialUshortCollection.cs
- SettingsProviderCollection.cs
- Set.cs
- ListBase.cs
- StatusStrip.cs
- KeyGestureConverter.cs
- Rule.cs
- EmptyEnumerator.cs
- TextServicesCompartment.cs
- OverrideMode.cs
- IntSecurity.cs
- Mutex.cs
- ObjectComplexPropertyMapping.cs
- RegisteredHiddenField.cs
- WebPartEventArgs.cs
- OdbcCommandBuilder.cs
- QueryResponse.cs
- ComAwareEventInfo.cs
- ApplicationProxyInternal.cs
- Odbc32.cs
- LinearGradientBrush.cs
- GenericEnumerator.cs
- BookmarkCallbackWrapper.cs
- ModuleBuilder.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- QueueAccessMode.cs
- BindingExpressionUncommonField.cs
- BindingMemberInfo.cs
- ReaderWriterLockWrapper.cs
- SmtpTransport.cs
- _LoggingObject.cs
- UInt32.cs
- UserPreferenceChangedEventArgs.cs
- Floater.cs
- EntityTypeEmitter.cs
- CommunicationObjectAbortedException.cs
- COM2IDispatchConverter.cs
- HtmlPageAdapter.cs
- QilLoop.cs
- TableSectionStyle.cs
- FrameworkElementFactoryMarkupObject.cs
- RelationshipEndCollection.cs
- DynamicUpdateCommand.cs
- TokenFactoryBase.cs
- SqlProviderServices.cs
- MessageDispatch.cs
- ContextProperty.cs
- SecureUICommand.cs
- HostingEnvironment.cs
- GroupQuery.cs
- Guid.cs
- CodeFieldReferenceExpression.cs
- Process.cs
- PasswordBoxAutomationPeer.cs
- ComponentResourceManager.cs
- AQNBuilder.cs
- WebProxyScriptElement.cs
- WebMessageEncodingBindingElement.cs