• About Nexar Generic PLM Connector
  • Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • CustomPLMService.Contract
      • Models
        • Authentication
          • Auth
          • Context
          • Credentials
          • IContext
        • Items
          • AttributeValue
          • FileResource
          • Id
          • Item
          • ItemCreateSpec
          • ItemResult
          • ItemUpdateSpec
          • NumberingFormat
          • UomValue
          • Value
          • Value.Type
        • Metadata
          • AttributeSpec
          • AttributeSpec.Datatype
          • AttributeSpec.Valueset
          • BaseType
          • ListValue
          • RelationshipSpec
          • RelationshipType
          • Type
          • TypeId
        • Query
          • Query
          • QueryAttribute
          • QueryAttribute.Occurrences
        • Relationship
          • RelationshipRow
          • RelationshipTable
        • SupportedOperation
      • ICustomPlmMetadataService
      • ICustomPlmService

    Class Value

    Represents value in external system.

    Inheritance
    object
    Value
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CustomPLMService.Contract.Models.Items
    Assembly: CustomPLMService.Contract.dll
    Syntax
    public class Value

    Constructors

    Value()

    Creates instance of Value with null value and undefined type.

    Declaration
    public Value()

    Value(Id)

    Creates instance of Value with type Reference.

    Declaration
    public Value(Id value)
    Parameters
    Type Name Description
    Id value

    Object reference

    Value(UomValue)

    Creates instance of Value with type Uom.

    Declaration
    public Value(UomValue value)
    Parameters
    Type Name Description
    UomValue value

    Unit of Measure value

    Value(ListValue)

    Creates instance of Value with type ListValue.

    Declaration
    public Value(ListValue value)
    Parameters
    Type Name Description
    ListValue value

    List value

    Value(bool)

    Creates instance of Value with type Bool.

    Declaration
    public Value(bool value)
    Parameters
    Type Name Description
    bool value

    Boolean value

    Value(double)

    Creates instance of Value with type Double.

    Declaration
    public Value(double value)
    Parameters
    Type Name Description
    double value

    Double numeric value

    Value(int)

    Creates instance of Value with type Int.

    Declaration
    public Value(int value)
    Parameters
    Type Name Description
    int value

    Integer numeric value

    Value(long)

    Creates instance of Value with type Date.

    Declaration
    public Value(long value)
    Parameters
    Type Name Description
    long value

    Long numeric value (timestamp)

    Value(float)

    Creates instance of Value with type Float.

    Declaration
    public Value(float value)
    Parameters
    Type Name Description
    float value

    Float numeric value

    Value(string)

    Creates instance of Value with type String.

    Declaration
    public Value(string value)
    Parameters
    Type Name Description
    string value

    String value

    Properties

    TypedValueCase

    Value type (see Value.Type)

    Declaration
    public Value.Type TypedValueCase { get; }
    Property Value
    Type Description
    Value.Type

    Methods

    IsNull()

    Whether internal value is null.

    Declaration
    public bool IsNull()
    Returns
    Type Description
    bool

    True if internal value is null, false otherwise

    Operators

    implicit operator Id(Value)

    Converts specified value to object reference (see Id).

    Declaration
    public static implicit operator Id(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    Id

    Object reference or null, if input is null or has internal null value

    implicit operator UomValue(Value)

    Converts specified value to Unit of Measure value (see UomValue).

    Declaration
    public static implicit operator UomValue(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    UomValue

    Unit of Measure value or null, if input is null or has internal null value

    implicit operator ListValue(Value)

    Converts specified value to list value (see ListValue).

    Declaration
    public static implicit operator ListValue(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    ListValue

    List value or null, if input is null or has internal null value

    implicit operator bool(Value)

    Converts specified value to boolean.

    Declaration
    public static implicit operator bool(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    bool

    Boolean value or false, if input is null or has internal null value

    implicit operator double(Value)

    Converts specified value to double.

    Declaration
    public static implicit operator double(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    double

    Double value or 0, if input is null or has internal null value

    implicit operator int(Value)

    Converts specified value to integer.

    Declaration
    public static implicit operator int(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    int

    Integer value or 0, if input is null or has internal null value

    implicit operator long(Value)

    Converts specified value to long.

    Declaration
    public static implicit operator long(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    long

    Long value or 0, if input is null or has internal null value

    implicit operator float(Value)

    Converts specified value to float.

    Declaration
    public static implicit operator float(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    float

    Float value or 0, if input is null or has internal null value

    implicit operator string(Value)

    Converts specified value to string.

    Declaration
    public static implicit operator string(Value value)
    Parameters
    Type Name Description
    Value value

    Input value

    Returns
    Type Description
    string

    String value or null, if input is null or has internal null value

    In this article
    Back to top Generated by DocFX