Class TokenComparison
An enum-like class that represents the result of comparing two Tokens.
Inheritance
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TokenComparison : DeputyBase
Syntax (vb)
Public Class TokenComparison
Inherits DeputyBase
Remarks
The return type of Token.compareStrings
.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var tokenComparison = TokenComparison.BOTH_UNRESOLVED;
Synopsis
Constructors
TokenComparison(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TokenComparison(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
BOTH_UNRESOLVED | This means both components are Tokens. |
DIFFERENT | This means we're certain the two components are NOT Tokens, and different. |
ONE_UNRESOLVED | This means exactly one of the components is a Token. |
SAME | This means we're certain the two components are NOT Tokens, and identical. |
Constructors
TokenComparison(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TokenComparison(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TokenComparison(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TokenComparison(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
BOTH_UNRESOLVED
This means both components are Tokens.
public static TokenComparison BOTH_UNRESOLVED { get; }
Property Value
DIFFERENT
This means we're certain the two components are NOT Tokens, and different.
public static TokenComparison DIFFERENT { get; }
Property Value
ONE_UNRESOLVED
This means exactly one of the components is a Token.
public static TokenComparison ONE_UNRESOLVED { get; }
Property Value
SAME
This means we're certain the two components are NOT Tokens, and identical.
public static TokenComparison SAME { get; }
Property Value