IActorRefFactory..::..ActorOf Method (Props, String)

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 [[Akka.Actor.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.Actor
Assembly:  Akka (in Akka.dll)

Syntax


InternalActorRef ActorOf(
	Props props,
	string name
)
Function ActorOf ( _
	props As Props, _
	name As String _
) As InternalActorRef
InternalActorRef^ ActorOf(
	Props^ props, 
	String^ name
)

Parameters

props
Type: Akka.Actor..::..Props
The props.
name
Type: String
The name.

Return Value

InternalActorRef.