Version
Show / Hide Table of Contents

Asset.AssetType Property

Returns the type of the asset.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

syntax

public extern byte AssetType {get;}

Attribute value: The enumeration value of the asset class (not the enumeration name).

The enumeration of the asset class is defined as follows:

public enum AssetType: byte
{
     CreditFlag = 0x40,
     DutyFlag = 0x80,

     SystemShare = 0x00,
     SystemCoin = 0x01,
     Currency = 0x08,
     Share = DutyFlag | 0x10,
     Invoice = DutyFlag | 0x18,
     Token = CreditFlag | 0x20,
}

Back