UnitsManager.TryGetUnit Method
Looks for the specified unit.
Namespace: SMath.ManagerAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
public static bool TryGetUnit(
SessionProfile sessionProfile,
string name,
out UnitInfo unitDef,
bool standard
)
Public Shared Function TryGetUnit (
sessionProfile As SessionProfile,
name As String,
<OutAttribute> ByRef unitDef As UnitInfo,
standard As Boolean
) As Boolean
public:
static bool TryGetUnit(
SessionProfile^ sessionProfile,
String^ name,
[OutAttribute] UnitInfo^% unitDef,
bool standard
)
static member TryGetUnit :
sessionProfile : SessionProfile *
name : string *
unitDef : UnitInfo byref *
standard : bool -> bool
- sessionProfile SessionProfile
- Session profile to use.
- name String
- Name of the unit.
- unitDef UnitInfo
- Receives the unit definition when the method returns true.
- standard Boolean
- true to use only standard units, false to use the units for the current session.
Booleantrue if the specified unit is found.