Condividi tramite


RenderingConnection.CreateComponent(ObjectType, Entity) Metodo

Definizione

Crea un nuovo 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

Parametri

componentType
ObjectType

Tipo di componente da creare.

owner
Entity

Entità proprietario per il componente.

Restituisce

Restituisce null se il client è stato disconnesso o l'entità proprietario ha già un componente di questo tipo.

Commenti

Si verifica un AlreadyExists errore, se l'entità ha già un componente del tipo richiesto.

Si applica a

Vedi anche