v1.0.0
Latest
2022.3+

Class SessionProperty

Represents a property of a session.

Inheritance
System.Object
SessionProperty
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Multiplayer
Syntax
public class SessionProperty : IValueProperty, IVisibilityProperty

Constructors

SessionProperty(String, VisibilityPropertyOptions, PropertyIndex)

Creates a new SessionProperty.

Declaration
public SessionProperty(string value, VisibilityPropertyOptions visibility = VisibilityPropertyOptions.Public, PropertyIndex index = PropertyIndex.None)
Parameters
TypeNameDescription
System.Stringvalue

The value of the property.

VisibilityPropertyOptionsvisibility

The visibility of the property.

PropertyIndexindex

The index of the property for querying purposes.

Properties

Index

The index of the property for querying purposes.

Declaration
public PropertyIndex Index { get; }
Property Value
TypeDescription
PropertyIndex

Value

The value of the property.

Declaration
public string Value { get; }
Property Value
TypeDescription
System.String

Visibility

The visibility of the property.

Declaration
public VisibilityPropertyOptions Visibility { get; }
Property Value
TypeDescription
VisibilityPropertyOptions