Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the AssemblyVersionAttribute class with the version number of the assembly being attributed.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Sub New ( _
version As String _
)
public AssemblyVersionAttribute(
string version
)
public:
AssemblyVersionAttribute(
String^ version
)
new :
version:string -> AssemblyVersionAttribute
public function AssemblyVersionAttribute(
version : String
)
Parameters
- version
Type: System. . :: . .String
The version number of the attributed assembly.
Remarks
The format of the version string is: major. minor. build. revision.
When specifying a version, you have to at least specify major. If you specify major and minor, you can specify an asterisk (*) for build. This will cause build to be equal to the number of days since January 1, 2000 local time, and for revision to be equal to the number of seconds since midnight local time, divided by 2.
If you specify major, minor, and build, you can specify an asterisk for revision. This will cause revision to be equal to the number of seconds since midnight local time, divided by 2.
Examples of valid version strings include:
1
1.1
1.1.*
1.1.1
1.1.1.*
1.1.1.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.