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
- ResXResourceReader.cs
- Content.cs
- ToolboxItemImageConverter.cs
- CodeRemoveEventStatement.cs
- UmAlQuraCalendar.cs
- TextServicesHost.cs
- ZipPackagePart.cs
- DBNull.cs
- Int32Rect.cs
- SchemaExporter.cs
- SecurityRequiresReviewAttribute.cs
- TemplateBaseAction.cs
- DeflateEmulationStream.cs
- ProviderException.cs
- CallContext.cs
- TextServicesDisplayAttribute.cs
- FixedSOMLineCollection.cs
- RequestCachePolicyConverter.cs
- StateBag.cs
- DynamicPropertyReader.cs
- UInt64Storage.cs
- SecurityPolicySection.cs
- EventHandlingScope.cs
- RoleService.cs
- RegexGroupCollection.cs
- ExecutionContext.cs
- SoapSchemaImporter.cs
- SecurityException.cs
- MarkupProperty.cs
- HttpListenerResponse.cs
- CngAlgorithm.cs
- FastPropertyAccessor.cs
- XmlHierarchicalEnumerable.cs
- AsymmetricKeyExchangeFormatter.cs
- InProcStateClientManager.cs
- ListDataHelper.cs
- XmlText.cs
- ExecutionEngineException.cs
- CornerRadiusConverter.cs
- XsltInput.cs
- LogEntrySerializationException.cs
- XmlAtomErrorReader.cs
- ChannelManagerService.cs
- SpeakProgressEventArgs.cs
- AssemblyInfo.cs
- DrawingGroup.cs
- Root.cs
- EventHandlersDesigner.cs
- InkCanvas.cs
- ConcurrentBag.cs
- SqlSupersetValidator.cs
- OleDbException.cs
- TemplatedEditableDesignerRegion.cs
- DataColumnPropertyDescriptor.cs
- GroupBoxAutomationPeer.cs
- MonthCalendar.cs
- ThreadAbortException.cs
- RuleInfoComparer.cs
- EdmValidator.cs
- WebControlsSection.cs
- Column.cs
- ConfigXmlText.cs
- TextRangeEditLists.cs
- TextModifier.cs
- ContainerCodeDomSerializer.cs
- PowerModeChangedEventArgs.cs
- XPathAncestorIterator.cs
- ForceCopyBuildProvider.cs
- SerializationObjectManager.cs
- TagMapCollection.cs
- XDeferredAxisSource.cs
- ThemeableAttribute.cs
- ConfigurationProperty.cs
- MenuItem.cs
- BridgeDataReader.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlExtensionFunction.cs
- VectorCollectionValueSerializer.cs
- WebConfigurationFileMap.cs
- SqlDuplicator.cs
- DataTableReader.cs
- translator.cs
- DispatchOperation.cs
- VectorConverter.cs
- FocusChangedEventArgs.cs
- PathFigure.cs
- MultiBindingExpression.cs
- WebPartDisplayModeCancelEventArgs.cs
- NullableDoubleMinMaxAggregationOperator.cs
- QueueProcessor.cs
- SafeRightsManagementEnvironmentHandle.cs
- BrowserCapabilitiesCompiler.cs
- SQLInt64.cs
- XhtmlStyleClass.cs
- ToolStripItemDataObject.cs
- SpoolingTask.cs
- InplaceBitmapMetadataWriter.cs
- TextBoxView.cs
- ToolStripItemTextRenderEventArgs.cs
- MailMessageEventArgs.cs