Class NSTemporaryKeyInfo

The fields returned when checking a temporary key.

Constructors

NSTemporaryKeyInfo()

Initializes a new instance of the NSTemporaryKeyInfo class.

Declaration

NSTemporaryKeyInfo

Methods

GetDomain()

Declaration

Integer GetDomain()

Examples

NSTemporaryKeyInfo thing;
Integer domain = thing.GetDomain();

Returns

Type Description
Integer The domain for this key. Unknown if key is not valid. See <xref href="CRMScript.NetServer.TemporaryKeyDomain" data-throw-if-not-resolved="false"></xref>.

GetIsExpired()

Declaration

Bool GetIsExpired()

Examples

NSTemporaryKeyInfo thing;
Bool isExpired = thing.GetIsExpired();

Returns

Type Description
Bool Whether the key is expired or not.

GetPersonId()

Declaration

Integer GetPersonId()

Examples

NSTemporaryKeyInfo thing;
Integer personId = thing.GetPersonId();

Returns

Type Description
Integer The person ID this key is related to. May be null.

GetTargetId()

Declaration

Integer GetTargetId()

Examples

NSTemporaryKeyInfo thing;
Integer targetId = thing.GetTargetId();

Returns

Type Description
Integer The primary key of the entity this temporary key is for, dependent of domain.

SetDomain(Integer)

Declaration

Void SetDomain(Integer domain)

Examples

NSTemporaryKeyInfo thing;
Integer domain;
thing.SetDomain(domain);

Parameters

Type Name Description
Integer domain The domain for this key. Unknown if key is not valid. See <xref href="CRMScript.NetServer.TemporaryKeyDomain" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetIsExpired(Bool)

Declaration

Void SetIsExpired(Bool isExpired)

Examples

NSTemporaryKeyInfo thing;
Bool isExpired;
thing.SetIsExpired(isExpired);

Parameters

Type Name Description
Bool isExpired Whether the key is expired or not.

Returns

Type Description
Void

SetPersonId(Integer)

Declaration

Void SetPersonId(Integer personId)

Examples

NSTemporaryKeyInfo thing;
Integer personId;
thing.SetPersonId(personId);

Parameters

Type Name Description
Integer personId The person ID this key is related to. May be null.

Returns

Type Description
Void

SetTargetId(Integer)

Declaration

Void SetTargetId(Integer targetId)

Examples

NSTemporaryKeyInfo thing;
Integer targetId;
thing.SetTargetId(targetId);

Parameters

Type Name Description
Integer targetId The primary key of the entity this temporary key is for, dependent of domain.

Returns

Type Description
Void