Show / Hide Table of Contents

Class ExpressionToken

Stores Microsoft Update expression tokens as key-value pairs.

Inheritance
System.Object
ExpressionToken
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Metadata.Applicability
Assembly: package-graph-microsoft-update.dll
Syntax
public class ExpressionToken

Fields

| Improve this Doc View Source

Name

The token name

Declaration
[JsonProperty]
public string Name
Field Value
Type Description
System.String
| Improve this Doc View Source

RawValue

The string value of the token, as read from the metadata XML

Declaration
[JsonProperty]
public string RawValue
Field Value
Type Description
System.String
| Improve this Doc View Source

ValueType

The typed value of the token

Declaration
[JsonProperty]
public readonly Type ValueType
Field Value
Type Description
System.Type

Methods

| Improve this Doc View Source

GetHashCode()

Override GetHashCode. Uses the token value for the hash code.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Hash code

Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

ToString()

Override ToString

Declaration
public override string ToString()
Returns
Type Description
System.String

string representation for the token value

Overrides
System.Object.ToString()

Operators

| Improve this Doc View Source

Implicit(ExpressionToken to ComparisonOperator)

Implicit cast to comparison operator. Converts from string comparison operator (e.g. "LessThan") to comparison operator

Declaration
public static implicit operator ComparisonOperator(ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
ComparisonOperator
| Improve this Doc View Source

Implicit(ExpressionToken to Boolean)

Implicit cast to bool

Declaration
public static implicit operator bool (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.Boolean
| Improve this Doc View Source

Implicit(ExpressionToken to Byte)

Implicit cast to byte

Declaration
public static implicit operator byte (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.Byte
| Improve this Doc View Source

Implicit(ExpressionToken to Int16)

Implicit cast to Int16

Declaration
public static implicit operator short (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.Int16
| Improve this Doc View Source

Implicit(ExpressionToken to Int32)

Implicit cast to int value

Declaration
public static implicit operator int (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.Int32
| Improve this Doc View Source

Implicit(ExpressionToken to String)

Implicit cast to string

Declaration
public static implicit operator string (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.String
| Improve this Doc View Source

Implicit(ExpressionToken to UInt16)

Implicit cast to UInt16

Declaration
public static implicit operator ushort (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.UInt16
| Improve this Doc View Source

Implicit(ExpressionToken to UInt32)

Implicit cast to UInt36

Declaration
public static implicit operator uint (ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.UInt32
| Improve this Doc View Source

Implicit(ExpressionToken to Version)

Implicit cast to Version object

Declaration
public static implicit operator Version(ExpressionToken token)
Parameters
Type Name Description
ExpressionToken token

The token to cast

Returns
Type Description
System.Version
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX