Struct Luid
Implements a locally unique ID.
Implements
System.Runtime.Serialization.ISerializable
Assembly: MediaBrowser.Model.dll
[Serializable]
public struct Luid : IEquatable<Luid>, IComparable, IComparable<Luid>, ISerializable, ICloneable
Constructors
Initializes a new instance of the Luid struct.
Declaration
Parameters
Type |
Name |
Description |
Int64 |
value |
The value.
|
Initializes a new instance of the Luid struct.
Declaration
public Luid(string luidString)
Parameters
Type |
Name |
Description |
String |
luidString |
The luid string.
|
Properties
Declaration
public static readonly Luid Empty { get; }
Property Value
Type |
Description |
Luid |
The empty Luid.
|
Methods
Creates a new object that is a copy of the current instance.
Declaration
Returns
Type |
Description |
Object |
A new object that is a copy of this instance.
|
Declaration
public int CompareTo(Luid value)
Parameters
Type |
Name |
Description |
Luid |
value |
|
Returns
Declaration
public int CompareTo(object value)
Parameters
Type |
Name |
Description |
Object |
value |
|
Returns
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 |
Boolean |
true if the current object is equal to the other parameter; otherwise, false.
|
Determines whether the specified Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
The Object to compare with this instance.
|
Returns
Type |
Description |
Boolean |
true if the specified Object is equal to this instance; otherwise, false .
|
Overrides
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
Int32 |
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
|
Overrides
Declaration
public long GetNumericValue()
Returns
Type |
Description |
Int64 |
The numeric value.
|
Declaration
public static Luid NewLuid()
Returns
Converts to a short string.
Declaration
public string ToShortString()
Returns
Type |
Description |
String |
A String that represents this instance.
|
Declaration
public override string ToString()
Returns
Type |
Description |
String |
A String that represents this instance.
|
Overrides
Declaration
public string ToString(bool excludeDots)
Parameters
Type |
Name |
Description |
Boolean |
excludeDots |
|
Returns
Type |
Description |
String |
A String that represents this instance.
|
Declaration
public static bool TryParse(string value, out Luid result)
Parameters
Returns
Declaration
public static bool TryParse(string value, IFormatProvider provider, out Luid result)
Parameters
Returns
Operators
Declaration
public static bool operator ==(Luid x, Luid y)
Parameters
Returns
Declaration
public static implicit operator Luid(long value)
Parameters
Type |
Name |
Description |
Int64 |
value |
|
Returns
Declaration
public static implicit operator Luid(string value)
Parameters
Type |
Name |
Description |
String |
value |
|
Returns
Declaration
public static bool operator !=(Luid x, Luid y)
Parameters
Returns
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.Runtime.Serialization.ISerializable
Extension Methods
See Also
System.Runtime.Serialization.ISerializable