Skip to content

M_CommandLine_Text_CopyrightInfo__ctor_4

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

CopyrightInfo Constructor (String, Int32[])

Initializes a new instance of the CopyrightInfo class specifying author and copyrightYears.

Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public CopyrightInfo(
	string author,
	params int[] years
)

VB

Public Sub New ( 
	author As String,
	ParamArray years As Integer()
)

C++

public:
CopyrightInfo(
	String^ author, 
	... array<int>^ years
)

F#

new : 
        author : string * 
        years : int[] -> CopyrightInfo

Parameters

 

author
Type: System.String
The company or person holding the copyright.
years
Type: System.Int32[]
The copyrightYears of coverage of copyright.

Exceptions

 

Exception Condition
ArgumentException Thrown when parameter author is null or empty string.
ArgumentOutOfRangeException Thrown when parameter years is not supplied.

See Also

Reference

CopyrightInfo Class
CopyrightInfo Overload
CommandLine.Text Namespace

Clone this wiki locally