ComponentGuaranteesAttribute.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Versioning / ComponentGuaranteesAttribute.cs / 1305376 / ComponentGuaranteesAttribute.cs

                            // ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 
/*============================================================
** 
** Class:  ComponentGuaranteesAttribute 
**
** 
** Purpose: Tracking whether a component signs up for a
**     a strong contract spanning multiple versions.
**
===========================================================*/ 
using System;
 
namespace System.Runtime.Versioning { 

    [Flags] 
    [Serializable]
    public enum ComponentGuaranteesOptions
    {
        None = 0, 
        Exchange = 0x1,
        Stable = 0x2, 
        SideBySide = 0x4, 
    }
 
    [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class |
                    AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Delegate |
                    AttributeTargets.Enum | AttributeTargets.Method | AttributeTargets.Property |
                    AttributeTargets.Constructor | AttributeTargets.Event, 
                    AllowMultiple = false, Inherited = false)]
    public sealed class ComponentGuaranteesAttribute : Attribute { 
        private ComponentGuaranteesOptions _guarantees; 

        public ComponentGuaranteesAttribute(ComponentGuaranteesOptions guarantees) 
        {
            _guarantees = guarantees;
        }
 
        public ComponentGuaranteesOptions Guarantees {
            get { return _guarantees; } 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 
/*============================================================
** 
** Class:  ComponentGuaranteesAttribute 
**
** 
** Purpose: Tracking whether a component signs up for a
**     a strong contract spanning multiple versions.
**
===========================================================*/ 
using System;
 
namespace System.Runtime.Versioning { 

    [Flags] 
    [Serializable]
    public enum ComponentGuaranteesOptions
    {
        None = 0, 
        Exchange = 0x1,
        Stable = 0x2, 
        SideBySide = 0x4, 
    }
 
    [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class |
                    AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Delegate |
                    AttributeTargets.Enum | AttributeTargets.Method | AttributeTargets.Property |
                    AttributeTargets.Constructor | AttributeTargets.Event, 
                    AllowMultiple = false, Inherited = false)]
    public sealed class ComponentGuaranteesAttribute : Attribute { 
        private ComponentGuaranteesOptions _guarantees; 

        public ComponentGuaranteesAttribute(ComponentGuaranteesOptions guarantees) 
        {
            _guarantees = guarantees;
        }
 
        public ComponentGuaranteesOptions Guarantees {
            get { return _guarantees; } 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK