Class ExpressionToken
Stores Microsoft Update expression tokens as key-value pairs.
Inheritance
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Metadata.Applicability
Assembly: package-graph-microsoft-update.dll
Syntax
public class ExpressionToken
Fields
| Improve this Doc View SourceName
The token name
Declaration
[JsonProperty]
public string Name
Field Value
| Type | Description |
|---|---|
| System.String |
RawValue
The string value of the token, as read from the metadata XML
Declaration
[JsonProperty]
public string RawValue
Field Value
| Type | Description |
|---|---|
| System.String |
ValueType
The typed value of the token
Declaration
[JsonProperty]
public readonly Type ValueType
Field Value
| Type | Description |
|---|---|
| System.Type |
Methods
| Improve this Doc View SourceGetHashCode()
Override GetHashCode. Uses the token value for the hash code.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | Hash code |
Overrides
ToString()
Override ToString
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | string representation for the token value |
Overrides
Operators
| Improve this Doc View SourceImplicit(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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |