# Class PropertyTag

java.lang.Object
com.independentsoft.pst.PropertyTag

public class PropertyTag extends Object
Represents a MAPI property tag, combining a property identifier and a `PropertyType`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PropertyTag()`
  Instantiates a new property tag.
  `PropertyTag(int tag, int type)`
  Instantiates a new property tag.
  `PropertyTag(int tag, PropertyType type)`
  Instantiates a new property tag.
  `PropertyTag(long propertyTag)`
  Instantiates a new property tag.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getTag()`
  Gets the tag.
  `PropertyType`
  `getType()`
  Gets the type.
  `void`
  `setTag(int tag)`
  Sets the tag.
  `void`
  `setType(PropertyType type)`
  Sets the type.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PropertyTag

    public PropertyTag()
    Instantiates a new property tag.

  - ### PropertyTag

    public PropertyTag(long propertyTag)
    Instantiates a new property tag.
    Parameters:
      `propertyTag` - the property tag

  - ### PropertyTag

    public PropertyTag(int tag, int type)
    Instantiates a new property tag.
    Parameters:
      `tag` - the tag
      `type` - the type

  - ### PropertyTag

    public PropertyTag(int tag, PropertyType type)
    Instantiates a new property tag.
    Parameters:
      `tag` - the tag
      `type` - the type

- ## Method Details

  - ### getTag

    public int getTag()
    Gets the tag.
    Returns:
      the tag

  - ### setTag

    public void setTag(int tag)
    Sets the tag.
    Parameters:
      `tag` - the new tag

  - ### getType

    public PropertyType getType()
    Gets the type.
    Returns:
      the type

  - ### setType

    public void setType(PropertyType type)
    Sets the type.
    Parameters:
      `type` - the new type