Version

VersionCF 1.0, ECMA 1.0, serializable

System (mscorlib.dll)sealed class

This class represents a version number. The .NET framework uses it as the version of assemblies, operating systems, and network protocols. A version number consists of as many as four parts: a major, minor, build, and revision number. For some applications, such as the HTTP protocol, only the first two numbers (major and minor) are used.

public sealed class Version : ICloneable, IComparable {
// Public Constructors
   public Version( );
   public Version(int major, int minor);
   public Version(int major, int minor, int build);
   public Version(int major, int minor, int build, int revision);
   public Version(string version);
// Public Instance Properties
   public int Build{get; }
   public int Major{get; }
   public int Minor{get; }
   public int Revision{get; }
// Public Static Methods
   public static bool operator !=(Version v1, Version v2);
   public static bool operator <(Version v1, Version v2);
   public static bool operator <=(Version v1, Version v2);
   public static bool operator =  =(Version v1, Version v2);
   public static bool operator >(Version v1, Version v2);
   public static bool operator >=(Version v1, Version v2);
// Public Instance Methods
   public object Clone( ); 
// implements ICloneable
   public int CompareTo(object version);
// implements IComparable
   public override bool Equals(object obj);          
// overrides object
   public override int GetHashCode( );    
// overrides object
   public override string ToString( );    
// overrides object
   public string ToString(int fieldCount);
}

Returned By

Environment.Version, System.Net.HttpWebRequest.ProtocolVersion, System.Net.HttpWebResponse.ProtocolVersion, System.Net.ServicePoint.ProtocolVersion, OperatingSystem.Version, System.Reflection.AssemblyName.Version

Passed To

System.Net.HttpWebRequest.ProtocolVersion, OperatingSystem.OperatingSystem( ), System.Reflection.Assembly.GetSatelliteAssembly( ), System.Reflection.AssemblyName.Version



    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System
     
    ASPTreeView.com
     
    Evaluation has єГШґєґЛЙexpired.
    Info...