ActorRefFactoryActorOf 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.
@throws akka.actor.InvalidActorNameException if the given name is
invalid or already in use
@throws akka.ConfigurationException if deployment, dispatcher
or mailbox configuration is wrong
Namespace: Akka.ActorAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
SyntaxActorRef ActorOf(
Props props,
string name = null
)
Function ActorOf (
props As Props,
Optional name As String = Nothing
) As ActorRef
ActorRef^ ActorOf(
Props^ props,
String^ name = nullptr
)
abstract ActorOf :
props : Props *
?name : string
(* Defaults:
let _name = defaultArg name null
*)
-> ActorRef
Parameters
- props
- Type: Akka.ActorProps
The props. - name (Optional)
- Type: SystemString
The name.
Return Value
Type:
ActorRefInternalActorRef.
See Also