Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Struct Luid

    Implements a locally unique ID.

    Implements
    System.IEquatable<Luid>
    System.IComparable
    System.IComparable<Luid>
    System.Runtime.Serialization.ISerializable
    System.ICloneable
    Namespace: MediaBrowser.Model.Entities
    Assembly: MediaBrowser.Model.dll
    Syntax
    [Serializable]
    public struct Luid : IEquatable<Luid>, IComparable, IComparable<Luid>, ISerializable, ICloneable

    Constructors

    Luid(Int64)

    Initializes a new instance of the Luid struct.

    Declaration
    public Luid(long value)
    Parameters
    Type Name Description
    System.Int64 value

    The value.

    Luid(String)

    Initializes a new instance of the Luid struct.

    Declaration
    public Luid(string luidString)
    Parameters
    Type Name Description
    System.String luidString

    The luid string.

    Properties

    Empty

    Gets the empty Luid.

    Declaration
    public static readonly Luid Empty { get; }
    Property Value
    Type Description
    Luid

    The empty Luid.

    Methods

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public object Clone()
    Returns
    Type Description
    System.Object

    A new object that is a copy of this instance.

    CompareTo(Luid)

    Declaration
    public int CompareTo(Luid value)
    Parameters
    Type Name Description
    Luid value
    Returns
    Type Description
    System.Int32

    CompareTo(Object)

    Declaration
    public int CompareTo(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    System.Int32

    Equals(Luid)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(Luid other)
    Parameters
    Type Name Description
    Luid other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    Equals(Object)

    Determines whether the specified System.Object, is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to this instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this instance.

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

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    System.ValueType.GetHashCode()

    GetNumericValue()

    Gets the numeric value.

    Declaration
    public long GetNumericValue()
    Returns
    Type Description
    System.Int64

    The numeric value.

    NewLuid()

    Declaration
    public static Luid NewLuid()
    Returns
    Type Description
    Luid

    ToShortString()

    Converts to a short string.

    Declaration
    public string ToShortString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Remarks

    Short strings are suitable for use cases like presentation or others where a high level of uniqueness is not required.

    ToString()

    Converts to string.

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

    A System.String that represents this instance.

    Overrides
    System.ValueType.ToString()

    ToString(Boolean)

    Converts to string.

    Declaration
    public string ToString(bool excludeDots)
    Parameters
    Type Name Description
    System.Boolean excludeDots
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    TryParse(String, out Luid)

    Declaration
    public static bool TryParse(string value, out Luid result)
    Parameters
    Type Name Description
    System.String value
    Luid result
    Returns
    Type Description
    System.Boolean

    TryParse(String, IFormatProvider, out Luid)

    Declaration
    public static bool TryParse(string value, IFormatProvider provider, out Luid result)
    Parameters
    Type Name Description
    System.String value
    System.IFormatProvider provider
    Luid result
    Returns
    Type Description
    System.Boolean

    Operators

    Equality(Luid, Luid)

    Declaration
    public static bool operator ==(Luid x, Luid y)
    Parameters
    Type Name Description
    Luid x
    Luid y
    Returns
    Type Description
    System.Boolean

    Implicit(Int64 to Luid)

    Declaration
    public static implicit operator Luid(long value)
    Parameters
    Type Name Description
    System.Int64 value
    Returns
    Type Description
    Luid

    Implicit(String to Luid)

    Declaration
    public static implicit operator Luid(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    Luid

    Inequality(Luid, Luid)

    Declaration
    public static bool operator !=(Luid x, Luid y)
    Parameters
    Type Name Description
    Luid x
    Luid y
    Returns
    Type Description
    System.Boolean

    Explicit Interface Implementations

    ISerializable.GetObjectData(SerializationInfo, StreamingContext)

    Declaration
    [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
    void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info
    System.Runtime.Serialization.StreamingContext context

    Implements

    System.IEquatable<T>
    System.IComparable
    System.IComparable<T>
    System.Runtime.Serialization.ISerializable
    System.ICloneable

    Extension Methods

    Extensions.JsonClone<T>(T, IJsonSerializer)

    See Also

    System.IEquatable<T>
    System.Runtime.Serialization.ISerializable
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.