sealed class
|
LicenceMetadata
|
The
company
name
or
'*'
for
any.
public
readonly
field
|
CompanyName
|
||
type
|
string
|
See also:
LicenceType.CompanyThe
legal
copyright
notice
or
'*'
for
any.
public
readonly
field
|
CopyrightNotice
|
||
type
|
string
|
See also:
LicenceType.CompanyThe
user
domain
or
'*'
for
any.
public
readonly
field
|
DomainName
|
||
type
|
string
|
See also:
LicenceType.DomainThe
product
name
or
'*'
for
any.
public
readonly
field
|
ProductName
|
||
type
|
string
|
See also:
LicenceType.ProductThe timestamp index.
public
readonly
field
|
Timestamp
|
||
type
|
int32
|
The licence type.
public
readonly
field
|
Type
|
||
type
|
LicenceType
|
The
user
name
or
'*'
for
any.
public
readonly
field
|
UserName
|
||
type
|
string
|
See also:
LicenceType.UserCreates a new instance of LicenceMetadata from the given licence request.
public
static
method
|
FromRequest
(Path licenceRequest)
|
||
type
|
LicenceMetadata
|
||
params
|
licenceRequest
|
[not-null]
|
Path to licence request file. |
returns
|
|
The licence metadata. |
See also:
LicenceDomain.RequestCreates a new instance of LicenceMetadata.
public
constructor
|
LicenceMetadata
(int32 timestamp,
string userName,
string domainName,
string productName,
string companyName,
string copyrightNotice)
|
||
params
|
timestamp
|
The
timestamp
ticks
(weeks)
or
-1
for
current. |
|
userName
|
The
user
name
or
*
for
any. |
||
domainName
|
The
domain
name
or
*
for
any. |
||
productName
|
The
product
name
or
*
for
any. |
||
companyName
|
The
company
name
or
*
for
any. |
||
copyrightNotice
|
The
copyright
notice
or
*
for
any. |
Are the metadata values valid for the given licence type?
public
method
|
IsValidFor
(LicenceType type)
|
||
type
|
bool
|
||
params
|
type
|
The licence type. | |
returns
|
true
if
all
metadata
values
are
valid
for
type,
false
if
not.
|
public
method
|
ToLicenceType
(LicenceType type)
|
||
type
|
LicenceMetadata
|
||
params
|
type
|
public
override
method
|
ToString
()
|
||
type
|
string
|
public
method
|
ToTimestamp
(int32 timestamp)
|
||
type
|
LicenceMetadata
|
||
params
|
timestamp
|