Alteruna Multiplayer Docs
C#
Show/Hide TOC
Score
Object
Methods
Get
Score
ID(List
IScore
Object
, String) Method
Retrieves the ID of a ScoreObject identified by a key from an array of IScoreObjects.
Definition
Namespace:
Alteruna.Multiplayer
Assembly:
Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
C#
Copy
public
static
int
GetScoreID
(
this
List
<
IScoreObject
>
scoreList
,
string
key
)
Parameters
scoreList
List
IScoreObject
The array of IScoreObjects to search through.
key
String
The key of the ScoreObject to find the ID for.
Return Value
Int32
The ID of the ScoreObject, if found.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
List
IScoreObject
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
Exceptions
KeyNotFoundException
Thrown if no score with the given key is found.
See Also
Reference
ScoreObjectMethods Class
GetScoreID Overload
Alteruna.Multiplayer Namespace
In This Article
Definition
Parameters
Return Value
Usage Note
Exceptions
See Also