RenderingConnection.CreateComponent(ObjectType, Entity) Método

Definición

Crea un nuevo componente.

public:
 Microsoft::Azure::RemoteRendering::ComponentBase ^ CreateComponent(Microsoft::Azure::RemoteRendering::ObjectType componentType, Microsoft::Azure::RemoteRendering::Entity ^ owner);
public Microsoft.Azure.RemoteRendering.ComponentBase CreateComponent (Microsoft.Azure.RemoteRendering.ObjectType componentType, Microsoft.Azure.RemoteRendering.Entity owner);
member this.CreateComponent : Microsoft.Azure.RemoteRendering.ObjectType * Microsoft.Azure.RemoteRendering.Entity -> Microsoft.Azure.RemoteRendering.ComponentBase
Public Function CreateComponent (componentType As ObjectType, owner As Entity) As ComponentBase

Parámetros

componentType
ObjectType

Tipo de componente que se va a crear.

owner
Entity

Entidad de propietario del componente.

Devoluciones

Devuelve null si el cliente se ha desconectado o la entidad propietaria ya tiene un componente de este tipo.

Comentarios

Se produce un AlreadyExists error si la entidad ya tiene un componente del tipo solicitado.

Se aplica a

Consulte también