Table of Contents

Class SteamID

Namespace
CounterStrikeSharp.API.Modules.Entities
Assembly
CounterStrikeSharp.API.dll
public class SteamID : IEquatable<SteamID>
Inheritance
SteamID
Implements

Constructors

SteamID(string)

public SteamID(string id)

Parameters

id string

SteamID(ulong)

public SteamID(ulong id)

Parameters

id ulong

Properties

AccountId

public int AccountId { get; }

Property Value

int

AccountInstance

public SteamAccountInstance AccountInstance { get; }

Property Value

SteamAccountInstance

AccountType

public SteamAccountType AccountType { get; }

Property Value

SteamAccountType

AccountUniverse

public SteamAccountUniverse AccountUniverse { get; }

Property Value

SteamAccountUniverse

SteamId2

public string SteamId2 { get; set; }

Property Value

string

SteamId3

public string SteamId3 { get; set; }

Property Value

string

SteamId32

public int SteamId32 { get; set; }

Property Value

int

SteamId64

public ulong SteamId64 { get; set; }

Property Value

ulong

Methods

Equals(SteamID?)

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

public bool Equals(SteamID? other)

Parameters

other SteamID

An object to compare with this object.

Returns

bool

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

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsValid()

public bool IsValid()

Returns

bool

ToCommunityUrl()

public Uri ToCommunityUrl()

Returns

Uri

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryParse(string, out SteamID?)

public static bool TryParse(string s, out SteamID? steamId)

Parameters

s string
steamId SteamID

Returns

bool

Operators

operator ==(SteamID?, SteamID?)

public static bool operator ==(SteamID? left, SteamID? right)

Parameters

left SteamID
right SteamID

Returns

bool

explicit operator SteamID(string)

public static explicit operator SteamID(string s)

Parameters

s string

Returns

SteamID

explicit operator SteamID(ulong)

public static explicit operator SteamID(ulong u)

Parameters

u ulong

Returns

SteamID

operator !=(SteamID?, SteamID?)

public static bool operator !=(SteamID? left, SteamID? right)

Parameters

left SteamID
right SteamID

Returns

bool