Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DateTimeFormatInfoScanner.cs
- RegularExpressionValidator.cs
- XmlParserContext.cs
- DataTableCollection.cs
- SmiEventSink.cs
- PasswordTextNavigator.cs
- CursorConverter.cs
- StyleCollection.cs
- ScriptServiceAttribute.cs
- SynchronousChannel.cs
- TextBoxLine.cs
- CaretElement.cs
- connectionpool.cs
- XPathArrayIterator.cs
- ComponentEditorForm.cs
- RichTextBoxDesigner.cs
- SessionPageStateSection.cs
- ActivityExecutorOperation.cs
- XLinq.cs
- WebServiceClientProxyGenerator.cs
- SmiConnection.cs
- TrustLevel.cs
- Int64Animation.cs
- OverflowException.cs
- PrintController.cs
- BuildProvidersCompiler.cs
- RegexWorker.cs
- TextServicesCompartment.cs
- XmlException.cs
- ImageListUtils.cs
- UrlAuthFailedErrorFormatter.cs
- HideDisabledControlAdapter.cs
- FileRegion.cs
- VectorAnimationUsingKeyFrames.cs
- ToolStripItemImageRenderEventArgs.cs
- OperatingSystem.cs
- StreamAsIStream.cs
- DbProviderFactory.cs
- EdmScalarPropertyAttribute.cs
- TimeStampChecker.cs
- MethodToken.cs
- BindingOperations.cs
- DataGridViewMethods.cs
- CodeTypeMember.cs
- FileClassifier.cs
- Native.cs
- PageParser.cs
- DesignerSerializationOptionsAttribute.cs
- XmlReader.cs
- XmlException.cs
- StyleBamlRecordReader.cs
- NetDispatcherFaultException.cs
- VBIdentifierNameEditor.cs
- CommandManager.cs
- ControlTemplate.cs
- ServerIdentity.cs
- ScopelessEnumAttribute.cs
- AutomationPropertyInfo.cs
- PropertyGeneratedEventArgs.cs
- UndoEngine.cs
- QuaternionValueSerializer.cs
- AsymmetricKeyExchangeDeformatter.cs
- ConsoleTraceListener.cs
- ModelItemDictionaryImpl.cs
- DataTableNewRowEvent.cs
- SelectorAutomationPeer.cs
- COM2IProvidePropertyBuilderHandler.cs
- ResourceExpression.cs
- IxmlLineInfo.cs
- StyleTypedPropertyAttribute.cs
- BaseCAMarshaler.cs
- ModuleConfigurationInfo.cs
- Debug.cs
- WebReferencesBuildProvider.cs
- ClickablePoint.cs
- DiscoveryMessageSequence11.cs
- ToolboxItemImageConverter.cs
- TdsParserSessionPool.cs
- JsonGlobals.cs
- ObjectConverter.cs
- WebServiceBindingAttribute.cs
- Exception.cs
- NativeMethods.cs
- StringPropertyBuilder.cs
- ScaleTransform3D.cs
- FtpCachePolicyElement.cs
- DataSetSchema.cs
- SrgsRulesCollection.cs
- WinEventHandler.cs
- WizardPanel.cs
- WebPartConnection.cs
- EventTrigger.cs
- GraphicsPath.cs
- Context.cs
- UrlMappingsModule.cs
- Triplet.cs
- Decorator.cs
- DataMisalignedException.cs
- PropertyValueChangedEvent.cs
- DocumentViewer.cs