| IActorRefFactoryActorOf Method |
Create new actor as child of this context with the given name, which must
not start with "$". If the given name is already in use,
and
InvalidActorNameException is thrown.
See
Props for details on how to obtain a
Props object.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax IActorRef ActorOf(
Props props,
string name = null
)
abstract ActorOf :
props : Props *
?name : string
(* Defaults:
let _name = defaultArg name null
*)
-> IActorRef
Parameters
- props
- Type: Akka.ActorProps
The props used to create this actor. - name (Optional)
- Type: SystemString
Optional. The name of this actor.
Return Value
Type:
IActorRefA reference to the underlying actor.
Exceptions See Also