Metadata

Description

sealed class Tinman.Licence.Metadata

Licence metadata that is read from the execution context.

Public / Constructors

Current


public static method Current → (1)

flags opt : int32 = 0xA17

The flags for choosing which metadata to obtain:
0x0001 : CompanyName (default)
0x0002 : CopyrightNotice (default)
0x0004 : DomainName (default)
0x0008 : MachineId
0x0010 : ProductName (default)
0x0020 : ProgramFile
0x0040 : ProgramHash
0x0080 : ProgramTitle
0x0100 : ProgramVersion
0x0200 : Timestamp (default)
0x0400 : TrademarkNotice
0x0800 : UserName (default)

returns → Metadata

The current metadata.

Reads metadata from the execution context.

Public / Methods

Value


[Pure]
public method Value → (1)

selector in : int32

The metadata value selector.

returns → string

The metadata value.

Fetches a metadata value.

On platforms other than .NET, the low-level licence module may use a different native heap. In that case, the returned metadata values may only be referenced while the Metadata object is alive. To use the metadata values afterward, an independent copy must be created.

Public / Attributes

Timestamp


public readonly attribute Timestamp → (int32)

The timestamp index.

Will be -1 iff this metadata value has not been obtained.